Generated by
JDiff

Class com.google.common.base.Equivalence

Changed from an interface to a class.

Added Constructors
Equivalence() Constructor for use by subclasses.
 

Added Methods
boolean doEquivalent(T, T) Returns {@code true} if {@code a} and {@code b} are considered equivalent.
int doHash(T) Returns a hash code for non-null object {@code t}.
Predicate<T> equivalentTo(T) Returns a predicate that evaluates to true if and only if the input is equivalent to {@code target} according to this equivalence relation.
Equivalence<F> onResultOf(Function<F, ?, extends, T>) Returns a new equivalence relation for {@code F} which evaluates equivalence by first applying {@code function} to the argument, then evaluating using {@code this}.
Equivalence<Iterable<S>> pairwise() Returns an equivalence over iterables based on the equivalence of their elements.
Wrapper<S> wrap(S extends T) Returns a wrapper of {@code reference} that implements Object.equals() such that {@code wrap(this, a).equals(wrap(this, b))} if and only if {@code this.equivalent(a, b)}.
 

Changed Methods
boolean equivalent(T, T) Change from non-final to final.
Returns {@code true} if the given objects are considered equivalent.
int hash(T) Change from non-final to final.
Returns a hash code for {@code t}.