public static class Storage.PrimitiveIdHash extends Object implements Hash<PrimitiveId,PrimitiveId>
Constructor and Description |
---|
PrimitiveIdHash() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(PrimitiveId key,
PrimitiveId value)
Compare two instances for semantic or lookup equality.
|
int |
getHashCode(PrimitiveId k)
Get hashcode for given instance, based on some inner state of the
instance.
|
public PrimitiveIdHash()
public int getHashCode(PrimitiveId k)
Hash
getHashCode
in interface Hash<PrimitiveId,PrimitiveId>
k
- the object to compute hashcode forpublic boolean equals(PrimitiveId key, PrimitiveId value)
Hash
Storage
.equals
in interface Hash<PrimitiveId,PrimitiveId>
key
- the object to comparevalue
- the object to compare