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, setEntryNext
clear, entrySet, get, get, getOrDefault, hashToIndex, matches, put, put, rehash, remove, size
clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, toString, values
public IdentityHashTable()
public IdentityHashTable(int capacity)
public int hash(java.lang.Object key)
AbstractHashTable
public boolean matches(K value1, java.lang.Object value2)
AbstractHashTable
AbstractHashTable.hash(Object)
method if you want
a different equivalence relation.