public class IdentityHashTable<K,V> extends GeneralHashTable<K,V>
DEFAULT_INITIAL_SIZE, mask, num_bindings, table| Constructor and Description |
|---|
IdentityHashTable() |
IdentityHashTable(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
hash(java.lang.Object key)
Calculate hash code of a key.
|
boolean |
matches(K value1,
java.lang.Object value2)
Compare two keys for equivalence.
|
allocEntries, getEntryHashCode, getEntryNext, getNode, makeEntry, setEntryNextclear, entrySet, get, get, getOrDefault, hashToIndex, matches, put, put, rehash, remove, sizepublic IdentityHashTable()
public IdentityHashTable(int capacity)
public int hash(java.lang.Object key)
AbstractHashTablepublic boolean matches(K value1, java.lang.Object value2)
AbstractHashTableAbstractHashTable.hash(Object) method if you want
a different equivalence relation.