Package org.eclipse.cdt.core.parser.util
Class ObjectMap
- java.lang.Object
-
- org.eclipse.cdt.core.parser.util.HashTable
-
- org.eclipse.cdt.core.parser.util.ObjectTable<Object>
-
- org.eclipse.cdt.core.parser.util.ObjectMap
-
public class ObjectMap extends ObjectTable<Object>
- Restriction:
- This class is not intended to be subclassed by clients.
-
-
Field Summary
Fields Modifier and Type Field Description static ObjectMapEMPTY_MAPAn empty immutableObjectMap.-
Fields inherited from class org.eclipse.cdt.core.parser.util.ObjectTable
keyTable
-
Fields inherited from class org.eclipse.cdt.core.parser.util.HashTable
currEntry, hashTable, minHashSize, nextTable
-
-
Constructor Summary
Constructors Constructor Description ObjectMap(int initialSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Objectclone()Objectget(Object key)ObjectgetAt(int i)booleanisEquivalent(ObjectMap other, IObjectMatcher matcher)protected intpartition(Comparator<Object> c, int p, int r)Objectput(Object key, Object value)Objectremove(Object key)protected voidremoveEntry(int i)protected voidresize(int size)StringtoString()Object[]valueArray()-
Methods inherited from class org.eclipse.cdt.core.parser.util.ObjectTable
add, containsKey, hash, isEquivalent, iterator, keyArray, keyArray, keyAt, lookup, toList
-
Methods inherited from class org.eclipse.cdt.core.parser.util.HashTable
capacity, countCollisions, dumpNexts, isEmpty, linkIntoHashTable, 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
-
EMPTY_MAP
public static final ObjectMap EMPTY_MAP
An empty immutableObjectMap.
-
-
Method Detail
-
clone
public Object clone()
- Overrides:
clonein classObjectTable<Object>
-
clear
public final void clear()
- Overrides:
clearin classObjectTable<Object>
-
resize
protected void resize(int size)
- Overrides:
resizein classObjectTable<Object>
-
getAt
public final Object getAt(int i)
-
removeEntry
protected final void removeEntry(int i)
- Overrides:
removeEntryin classObjectTable<Object>
-
partition
protected int partition(Comparator<Object> c, int p, int r)
-
valueArray
public Object[] valueArray()
-
isEquivalent
public boolean isEquivalent(ObjectMap other, IObjectMatcher matcher)
-
toString
public String toString()
- Overrides:
toStringin classObjectTable<Object>
-
-