- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
Integer>
- Enclosing class:
- ClassArraySorter
Table mapping strings to integers.
This class is a trivial extension of the class
HashMap<String,Integer>
, and is provided
because of Java-related issues with creating arrays of generic
classes.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.ArgCountMap
(int initialCapacity) Constructor given an initial capacity.ArgCountMap
(int initialCapacity, float loadFactor) Constructor given an initial capacity and load factor. -
Method Summary
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
ArgCountMap
public ArgCountMap()Constructor. -
ArgCountMap
public ArgCountMap(int initialCapacity) Constructor given an initial capacity.- Parameters:
initialCapacity
- the initial capacity of this map
-
ArgCountMap
public ArgCountMap(int initialCapacity, float loadFactor) Constructor given an initial capacity and load factor. When the number of entries exceeds the product of the load factor and the initial capacity, the table is resized.- Parameters:
initialCapacity
- the initial capacity of this maploadFactor
- the load factor for this map
-