Class TiedMapEntry<K,V> 
java.lang.Object
org.apache.commons.collections4.keyvalue.TiedMapEntry<K,V> 
- Type Parameters:
- K- the type of keys
- V- the type of mapped values
- All Implemented Interfaces:
- Serializable,- Map.Entry<K,,- V> - KeyValue<K,- V> 
public class TiedMapEntry<K,V> 
extends Object
implements Map.Entry<K,V>, KeyValue<K,V>, Serializable  
A 
Map.Entry tied to a map underneath.
 This can be used to enable a map entry to make changes on the underlying map, however this will probably mess up any iterators.
- Since:
- 3.0
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionTiedMapEntry(Map<K, V> map, K key) Constructs a new entry with the given Map and key.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanCompares thisMap.Entrywith anotherMap.Entry.getKey()Gets the key of this entrygetValue()Gets the value of this entry direct from the map.inthashCode()Gets a hashCode compatible with the equals method.Sets the value associated with the key direct onto the map.toString()Gets a string version of the entry.
- 
Constructor Details- 
TiedMapEntryConstructs a new entry with the given Map and key.- Parameters:
- map- the map
- key- the key
 
 
- 
- 
Method Details- 
equalsCompares thisMap.Entrywith anotherMap.Entry.Implemented per API documentation of Map.Entry.equals(Object)
- 
getKey
- 
getValue
- 
hashCode
- 
setValue
- 
toString
 
-