Package com.twelvemonkeys.util
Class LinkedMap.LinkedEntry<K,V>
- java.lang.Object
-
- com.twelvemonkeys.util.LinkedMap.LinkedEntry<K,V>
-
- All Implemented Interfaces:
java.io.Serializable,java.util.Map.Entry<K,V>
protected static class LinkedMap.LinkedEntry<K,V> extends java.lang.Object implements java.io.SerializableLinked list implementation ofMap.Entry.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object pOther)KgetKey()VgetValue()inthashCode()protected voidrecordAccess(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 voidrecordRemoval(java.util.Map<K,V> pMap)Removes this entry from the linked list.VsetValue(V pValue)java.lang.StringtoString()
-
-
-
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:
getValuein interfacejava.util.Map.Entry<K,V>
-
setValue
public V setValue(V pValue)
- Specified by:
setValuein interfacejava.util.Map.Entry<K,V>
-
getKey
public K getKey()
- Specified by:
getKeyin interfacejava.util.Map.Entry<K,V>
-
equals
public boolean equals(java.lang.Object pOther)
- Specified by:
equalsin interfacejava.util.Map.Entry<K,V>- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.util.Map.Entry<K,V>- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-