Uses of Class
com.google.common.base.Equivalence
Packages that use Equivalence
Package
Description
Basic utility libraries and interfaces.
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
This package contains testing utilities.
-
Uses of Equivalence in com.google.common.base
Methods in com.google.common.base that return EquivalenceModifier and TypeMethodDescriptionstatic Equivalence<Object>Equivalence.equals()Returns an equivalence that delegates toObject.equals(java.lang.Object)andObject.hashCode().static Equivalence<Object>Equivalence.identity()Returns an equivalence that uses==to compare values andSystem.identityHashCode(Object)to compute the hash code.final <F> Equivalence<F>Equivalence.onResultOf(Function<? super F, ? extends T> function) Returns a new equivalence relation forFwhich evaluates equivalence by first applyingfunctionto the argument, then evaluating usingthis.final <S extends T>
Equivalence<Iterable<S>>Equivalence.pairwise()Returns an equivalence over iterables based on the equivalence of their elements. -
Uses of Equivalence in com.google.common.collect
Methods in com.google.common.collect with parameters of type EquivalenceModifier and TypeMethodDescriptionstatic <K,V> MapDifference<K, V> Maps.difference(Map<? extends K, ? extends V> left, Map<? extends K, ? extends V> right, Equivalence<? super V> valueEquivalence) Computes the difference between two maps. -
Uses of Equivalence in com.google.common.testing
Methods in com.google.common.testing with parameters of type EquivalenceModifier and TypeMethodDescriptionstatic <T> EquivalenceTester<T>EquivalenceTester.of(Equivalence<? super T> equivalence)