V - the value typepublic class IdentityHasher<V> extends Object implements Hasher<V>
identity hashCode and reference equality.| Modifier and Type | Field and Description |
|---|---|
static IdentityHasher |
INSTANCE
A singleton instance of the IdentityHasher.
|
| Constructor and Description |
|---|
IdentityHasher() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(V va, V vb)
Compare two objects for equality.
|
int |
hashCode(V o)
Return a hash for the specified object.
|
public static final IdentityHasher INSTANCE
public int hashCode(V o)