Class EntryHashMap<K,​V extends EntryHashMap.Entry<K>>

  • Type Parameters:
    K - key type
    V - value type which has a reference to its key
    All Implemented Interfaces:
    java.lang.Iterable<V>

    public abstract class EntryHashMap<K,​V extends EntryHashMap.Entry<K>>
    extends KeyInValueMap<K,​V>
    A map of Entry values (containing the key and the value) that can be subclassed to allow mapping of mutable values. Note that the key values are final and may not be changed.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  EntryHashMap.Entry<K>
      An entry in an EntryHashMap.
    • Constructor Summary

      Constructors 
      Constructor Description
      EntryHashMap​(int initialCapacity, float loadFactor)
      Create a new map.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected K getKey​(V value)
      Get the key for a value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • EntryHashMap

        public EntryHashMap​(int initialCapacity,
                            float loadFactor)
        Create a new map.
        Parameters:
        initialCapacity - initial storage capacity
        loadFactor - load factor at which to increase the internal storage capacity