V
- the value typepublic class IdentityHasher<V> extends Object implements Hasher<V>
identity hashCode
and reference
equality.Modifier and Type | Field | Description |
---|---|---|
static IdentityHasher |
INSTANCE |
A singleton instance of the IdentityHasher.
|
Constructor | Description |
---|---|
IdentityHasher() |
Modifier and Type | Method | 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)