Package org.eclipse.cdt.core.parser.util
Class CharArrayObjectMap<T>
java.lang.Object
org.eclipse.cdt.core.parser.util.HashTable
org.eclipse.cdt.core.parser.util.CharTable
org.eclipse.cdt.core.parser.util.CharArrayObjectMap<T>
- All Implemented Interfaces:
Cloneable
- Restriction:
- This class is not intended to be subclassed by clients.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CharArrayObjectMap<?> An empty immutableCharArrayObjectMap.Fields inherited from class org.eclipse.cdt.core.parser.util.HashTable
currEntry, hashTable, minHashSize, nextTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clone()booleanChecks if the map values contain the given object.static <T> CharArrayObjectMap<T> emptyMap()final Tget(char[] key) final Tget(char[] key, int start, int length) final TgetAt(int i) protected intpartition(Comparator<Object> c, int p, int r) final Tfinal Tremove(char[] key, int start, int length) protected voidresize(int size) toString()Object[]Object[]valueArray(Class<?> clazz) values()Returns aCollectionview of the values contained in this map.Methods inherited from class org.eclipse.cdt.core.parser.util.CharTable
addIndex, addIndex, containsKey, containsKey, findKey, hash, hash, hash, keyArray, keyAt, keys, lookup, lookup, lookup, removeEntry, toListMethods inherited from class org.eclipse.cdt.core.parser.util.HashTable
capacity, countCollisions, dumpNexts, isEmpty, linkIntoHashTable, rehash, removeEntry, resize, size, sort
-
Field Details
-
EMPTY_MAP
An empty immutableCharArrayObjectMap.
-
-
Constructor Details
-
CharArrayObjectMap
public CharArrayObjectMap(int initialSize)
-
-
Method Details
-
emptyMap
- Since:
- 5.4
-
put
-
put
-
get
-
get
-
getAt
-
remove
-
clone
-
resize
protected void resize(int size) -
clear
public void clear() -
partition
-
valueArray
-
valueArray
-
values
Returns aCollectionview of the values contained in this map. The collection is backed by the map, so changes to the map are reflected in the collection, and vice-versa.- Since:
- 6.0
-
containsValue
Checks if the map values contain the given object.- Since:
- 6.0
-
toString
-