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)
Returns
true if a and b are considered equivalent. |
protected int |
doHash(java.lang.Object o)
Returns a hash code for non-null object
t . |
private java.lang.Object |
readResolve() |
equals, equivalent, equivalentTo, hash, identity, onResultOf, pairwise, wrap
static final Equivalence.Identity INSTANCE
private static final long serialVersionUID
protected boolean doEquivalent(java.lang.Object a, java.lang.Object b)
Equivalence
true
if a
and b
are considered equivalent.
Called by Equivalence.equivalent(T, T)
. a
and b
are not the same
object and are not nulls.
doEquivalent
in class Equivalence<java.lang.Object>
protected int doHash(java.lang.Object o)
Equivalence
t
.
Called by Equivalence.hash(T)
.
doHash
in class Equivalence<java.lang.Object>
private java.lang.Object readResolve()