Class LinkedMap.LinkedEntry<K,​V>

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Map.Entry<K,​V>
    Enclosing class:
    LinkedMap<K,​V>

    protected static class LinkedMap.LinkedEntry<K,​V>
    extends java.lang.Object
    implements java.io.Serializable
    Linked list implementation of Map.Entry.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object pOther)  
      K getKey()  
      V getValue()  
      int hashCode()  
      protected void recordAccess​(java.util.Map<K,​V> pMap)
      If the entry is part of an access ordered list, moves the entry to the end of the list.
      protected void recordRemoval​(java.util.Map<K,​V> pMap)
      Removes this entry from the linked list.
      V setValue​(V pValue)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • recordAccess

        protected void recordAccess​(java.util.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​(java.util.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 java.util.Map.Entry<K,​V>
      • setValue

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

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

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object