com.twelvemonkeys.util
Class LinkedMap.LinkedEntry<K,V>

java.lang.Object
  extended by 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:
Serialized Form

Method Summary
 boolean equals(Object pOther)
           
 K getKey()
           
 V getValue()
           
 int hashCode()
           
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.
protected  void recordRemoval(Map<K,V> pMap)
          Removes this entry from the linked list.
 V setValue(V pValue)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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


Copyright © 2014. All Rights Reserved.