@Deprecated
public interface Hasher
If no Hasher is provided, then clients should act as if the following Hasher were provided:
class DefaultHasher { int hashCode(Object o) { return o.hashCode(); } boolean equals(Object o, Object o2) { return o.equals(o2); } }
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o1,
java.lang.Object o2)
Deprecated.
The equality function over the objects being hashed.
|
int |
hashCode(java.lang.Object o)
Deprecated.
hashCode function for objects under consideration (not for Hasher objects).
|
int hashCode(java.lang.Object o)
o
- object whose hash code to computeboolean equals(java.lang.Object o1, java.lang.Object o2)
Has nothing to do with testing Hashers themselves for equality.
o1
- the first value to test for equalityo2
- the second value to test for equality