@Beta @GwtCompatible public final class Equivalences extends Object
Equivalence instances.
All methods return serializable instances.
| Modifier and Type | Method and Description |
|---|---|
static Equivalence<Object> |
equals()
Deprecated.
This method has been moved to
Equivalence.equals(). This method is scheduled
to be removed in Guava release 14.0. |
static Equivalence<Object> |
identity()
Deprecated.
This method has been moved to
Equivalence.identity(). This method is schedule
to be removed in Guava release 14.0. |
@Deprecated public static Equivalence<Object> equals()
Equivalence.equals(). This method is scheduled
to be removed in Guava release 14.0.Object.equals(java.lang.Object) and Object.hashCode().
Equivalence.equivalent(T, T) returns true if both values are null, or if neither
value is null and Object.equals(java.lang.Object) returns true. Equivalence.hash(T) returns
0 if passed a null value.@Deprecated public static Equivalence<Object> identity()
Equivalence.identity(). This method is schedule
to be removed in Guava release 14.0.== to compare values and System.identityHashCode(Object) to compute the hash code. Equivalence.equivalent(T, T)
returns true if a == b, including in the case that a and b are both null.Copyright © 2010-2013. All Rights Reserved.