Class LinkedMap.LinkedEntry<K,V>

java.lang.Object
com.twelvemonkeys.util.LinkedMap.LinkedEntry<K,V>
All Implemented Interfaces:
Serializable, Map.Entry<K,V>
Enclosing class:
LinkedMap<K,V>

protected static class LinkedMap.LinkedEntry<K,V> extends Object implements Serializable
Linked list implementation of Map.Entry.
See Also:
  • Method Details

    • recordAccess

      protected void recordAccess(Map<K,V> pMap)
      If the entry is part of an access ordered list, moves the entry to the end of the list.
      Parameters:
      pMap - the map to record access for
    • recordRemoval

      protected void recordRemoval(Map<K,V> pMap)
      Removes this entry from the linked list.
      Parameters:
      pMap - the map to record removal from
    • getValue

      public V getValue()
      Specified by:
      getValue in interface Map.Entry<K,V>
    • setValue

      public V setValue(V pValue)
      Specified by:
      setValue in interface Map.Entry<K,V>
    • getKey

      public K getKey()
      Specified by:
      getKey in interface Map.Entry<K,V>
    • equals

      public boolean equals(Object pOther)
      Specified by:
      equals in interface Map.Entry<K,V>
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Map.Entry<K,V>
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object