gnu.trove
public final class TObjectIdentityHashingStrategy<T> extends java.lang.Object implements TObjectHashingStrategy<T>
Constructor and Description |
---|
TObjectIdentityHashingStrategy() |
Modifier and Type | Method and Description |
---|---|
int |
computeHashCode(T object)
Delegates hash code computation to the System.identityHashCode(Object) method.
|
boolean |
equals(T o1,
T o2)
Compares object references for equality.
|
public final int computeHashCode(T object)
computeHashCode
in interface TObjectHashingStrategy<T>
object
- for which the hashcode is to be computedpublic final boolean equals(T o1, T o2)
equals
in interface TObjectHashingStrategy<T>
o1
- an Object
valueo2
- an Object
valueGNU Trove is copyright ? 2001-2009 Eric D. Friedman. All Rights Reserved.