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.Serializable
Linked list implementation ofMap.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()
-
-
-
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 interfacejava.util.Map.Entry<K,V>
-
setValue
public V setValue(V pValue)
- Specified by:
setValue
in interfacejava.util.Map.Entry<K,V>
-
getKey
public K getKey()
- Specified by:
getKey
in interfacejava.util.Map.Entry<K,V>
-
equals
public boolean equals(java.lang.Object pOther)
- Specified by:
equals
in interfacejava.util.Map.Entry<K,V>
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Map.Entry<K,V>
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-