Package com.oracle.coherence.common.base
Class IdentityHasher<V>
- java.lang.Object
-
- com.oracle.coherence.common.base.IdentityHasher<V>
-
- Type Parameters:
V
- the value type
- All Implemented Interfaces:
Hasher<V>
public class IdentityHasher<V> extends Object implements Hasher<V>
IdentityHasher provides a Hasher implementation based upon an object'sidentity hashCode
and reference equality.- Author:
- mf 2011.01.07
-
-
Field Summary
Fields Modifier and Type Field Description static IdentityHasher
INSTANCE
A singleton instance of the IdentityHasher.
-
Constructor Summary
Constructors Constructor Description IdentityHasher()
-
Method Summary
All Methods Instance Methods Concrete Methods 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.
-
-
-
Field Detail
-
INSTANCE
public static final IdentityHasher INSTANCE
A singleton instance of the IdentityHasher.
-
-
Method Detail
-
hashCode
public int hashCode(V o)
Return a hash for the specified object.
-
-