Class AbstractHashMap
java.lang.Object
com.ibm.j9ddr.corereaders.tdump.zebedee.util.AbstractHashMap
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbstractLruCache
,IntegerMap
,IntegerSet
,ObjectMap
This is the superclass of a variety of subclasses which provide hash map functionality
using integer keys rather than objects. This class uses open addressing with double hashing
and has a reasonably small footprint.
- See Also:
-
Constructor Details
-
AbstractHashMap
public AbstractHashMap()
-
-
Method Details
-
size
public int size()- Returns:
- the number of entries
-
getKeys
Return an enumeration of the keys in this map.IntEnumeration
is similar to Enumeration except that it also provides a nextInt() method to return a primitive value. -
getKeysArray
public long[] getKeysArray()Return an array containing the keys.
-