Uses of Class
com.google.common.base.Equivalence
-
Packages that use Equivalence Package Description com.google.common.base Basic utility libraries and interfaces.com.google.common.collect Collection interfaces and implementations, and other utilities for collections. -
-
Uses of Equivalence in com.google.common.base
Methods in com.google.common.base that return Equivalence Modifier and Type Method Description static Equivalence<java.lang.Object>
Equivalence. equals()
Returns an equivalence that delegates toObject.equals(java.lang.Object)
andObject.hashCode()
.static Equivalence<java.lang.Object>
Equivalence. identity()
Returns an equivalence that uses==
to compare values andSystem.identityHashCode(Object)
to compute the hash code.<F> Equivalence<F>
Equivalence. onResultOf(Function<? super F,? extends @Nullable T> function)
Returns a new equivalence relation forF
which evaluates equivalence by first applyingfunction
to the argument, then evaluating usingthis
.<S extends @Nullable T>
Equivalence<java.lang.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 Equivalence Modifier and Type Method Description static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
MapDifference<K,V>Maps. difference(java.util.Map<? extends K,? extends V> left, java.util.Map<? extends K,? extends V> right, Equivalence<? super @NonNull V> valueEquivalence)
Computes the difference between two maps.
-