static final class Equivalence.Identity extends Equivalence<java.lang.Object> implements java.io.Serializable
Equivalence.Equals, Equivalence.Identity, Equivalence.Wrapper<T>
Modifier and Type | Field and Description |
---|---|
(package private) static Equivalence.Identity |
INSTANCE |
private static long |
serialVersionUID |
Constructor and Description |
---|
Identity() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doEquivalent(java.lang.Object a,
java.lang.Object b)
Implemented by the user to determine whether
a and b are considered equivalent,
subject to the requirements specified in Equivalence.equivalent(T, T) . |
protected int |
doHash(java.lang.Object o)
Implemented by the user to return a hash code for
t , subject to the requirements
specified in Equivalence.hash(T) . |
private java.lang.Object |
readResolve() |
equals, equivalent, equivalentTo, hash, identity, onResultOf, pairwise, test, wrap
static final Equivalence.Identity INSTANCE
private static final long serialVersionUID
protected boolean doEquivalent(java.lang.Object a, java.lang.Object b)
Equivalence
a
and b
are considered equivalent,
subject to the requirements specified in Equivalence.equivalent(T, T)
.
This method should not be called except by Equivalence.equivalent(T, T)
. When Equivalence.equivalent(T, T)
calls this method, a
and b
are guaranteed to be distinct, non-null instances.
doEquivalent
in class Equivalence<java.lang.Object>
protected int doHash(java.lang.Object o)
Equivalence
t
, subject to the requirements
specified in Equivalence.hash(T)
.
This method should not be called except by Equivalence.hash(T)
. When Equivalence.hash(T)
calls this
method, t
is guaranteed to be non-null.
doHash
in class Equivalence<java.lang.Object>
private java.lang.Object readResolve()