Module openj9.dtfj

Class AbstractHashMap

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    AbstractLruCache, IntegerMap, ObjectMap

    public abstract class AbstractHashMap
    extends Object
    implements Serializable
    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:
    Serialized Form
    • Constructor Detail

      • AbstractHashMap

        public AbstractHashMap()
    • Method Detail

      • getKeys

        public IntEnumeration 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.