|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HashingStrategy<T>
Interface to support pluggable hashing strategies in maps and sets. Implementers can use this interface to make the trove hashing algorithms use object values, values provided by the java runtime, or a custom strategy when computing hashcodes.
Method Summary | |
---|---|
int |
computeHashCode(T object)
Computes a hash code for the specified object. |
boolean |
equals(T o1,
T o2)
Compares o1 and o2 for equality. |
Method Detail |
---|
int computeHashCode(T object)
object
- for which the hashcode is to be computed
boolean equals(T o1, T o2)
o1
- an Object
valueo2
- an Object
value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |