|
GNU Trove | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.trove.strategy.IdentityHashingStrategy<K>
public class IdentityHashingStrategy<K>
A HashingStrategy
that does identity comparisons
(==) and uses System.identityHashCode(Object)
for hashCode generation.
Constructor Summary | |
---|---|
IdentityHashingStrategy()
|
Method Summary | |
---|---|
int |
computeHashCode(K object)
Computes a hash code for the specified object. |
boolean |
equals(K o1,
K o2)
Compares o1 and o2 for equality. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IdentityHashingStrategy()
Method Detail |
---|
public int computeHashCode(K object)
HashingStrategy
computeHashCode
in interface HashingStrategy<K>
object
- for which the hashcode is to be computed
public boolean equals(K o1, K o2)
HashingStrategy
equals
in interface HashingStrategy<K>
o1
- an Object
valueo2
- an Object
value
|
GNU Trove | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |