gnu.trove
Class TObjectIdentityHashingStrategy<T>
java.lang.Object
gnu.trove.TObjectIdentityHashingStrategy<T>
- TObjectHashingStrategy
public final class TObjectIdentityHashingStrategy<T>
extends java.lang.Object
implements TObjectHashingStrategy
This object hashing strategy uses the System.identityHashCode
method to provide identity hash codes. These are identical to the
value produced by Object.hashCode(), even when the type of the
object being hashed overrides that method.
Created: Sat Aug 17 11:13:15 2002
$Id: TObjectIdentityHashingStrategy.java,v 1.4 2007/06/11 15:26:44 robeden Exp $ 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.
|
computeHashCode
public final int computeHashCode(T object)
Delegates hash code computation to the System.identityHashCode(Object) method.
object
- for which the hashcode is to be computed
equals
public final boolean equals(T o1,
T o2)
Compares object references for equality.
o1
- an Object
valueo2
- an Object
value
GNU Trove is copyright B) 2001-2008 Eric D. Friedman. All Rights Reserved.