Package org.eclipse.cdt.core.parser.util
Class ObjectTable<T>
- java.lang.Object
-
- org.eclipse.cdt.core.parser.util.HashTable
-
- org.eclipse.cdt.core.parser.util.ObjectTable<T>
-
-
Constructor Summary
Constructors Constructor Description ObjectTable(int initialSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class org.eclipse.cdt.core.parser.util.HashTable
capacity, countCollisions, dumpNexts, isEmpty, linkIntoHashTable, partition, rehash, removeEntry, resize, size, sort
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
keyTable
protected T[] keyTable
-
-
Method Detail
-
keyAt
public T keyAt(int i)
-
add
protected final int add(T obj)
-
removeEntry
protected void removeEntry(int i)
-
lookup
protected final int lookup(Object buffer)
-
containsKey
public boolean containsKey(T key)
-
keyArray
public Object[] keyArray()
-
keyArray
public <X> X[] keyArray(Class<X> c)
-
isEquivalent
public boolean isEquivalent(ObjectTable<T> other, IObjectMatcher matcher)
-
-