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 AbstractDecoratedMap.BasicEntry<K,​V>
    implements java.io.Serializable
    Linked list implementation of Map.Entry.
    See Also:
    Serialized Form
    • Method Detail

      • addBefore

        void addBefore​(LinkedMap.LinkedEntry<K,​V> pExisting)
        Adds this entry before the given entry (which must be an existing entry) in the list.
        Parameters:
        pExisting - the entry to add before
      • remove

        void remove()
        Removes this entry from the linked list.
      • 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.
        Overrides:
        recordAccess in class AbstractDecoratedMap.BasicEntry<K,​V>
        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.
        Overrides:
        recordRemoval in class AbstractDecoratedMap.BasicEntry<K,​V>
        Parameters:
        pMap - the map to record removal from