Modifier and Type | Field and Description |
---|---|
protected T[] |
keyTable |
currEntry, hashTable, minHashSize, nextTable
Constructor and Description |
---|
ObjectTable(int initialSize) |
Modifier and Type | Method and Description |
---|---|
protected int |
add(T obj) |
void |
clear() |
Object |
clone() |
boolean |
containsKey(T key) |
protected int |
hash(int pos) |
boolean |
isEquivalent(ObjectTable<T> other,
IObjectMatcher matcher) |
Iterator<T> |
iterator() |
Object[] |
keyArray() |
<X> X[] |
keyArray(Class<X> c) |
T |
keyAt(int i) |
protected int |
lookup(Object buffer) |
protected void |
removeEntry(int i) |
protected void |
resize(int size) |
List<T> |
toList() |
String |
toString() |
capacity, countCollisions, dumpNexts, isEmpty, linkIntoHashTable, partition, rehash, removeEntry, resize, size, sort
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected T[] keyTable
public T keyAt(int i)
protected final int add(T obj)
protected void removeEntry(int i)
protected final int lookup(Object buffer)
public boolean containsKey(T key)
public Object[] keyArray()
public <X> X[] keyArray(Class<X> c)
public boolean isEquivalent(ObjectTable<T> other, IObjectMatcher matcher)
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.