Class AbstractMapEntry<K,V> 
java.lang.Object
org.apache.commons.collections4.keyvalue.AbstractKeyValue<K,V>
 
org.apache.commons.collections4.keyvalue.AbstractMapEntry<K,V> 
- Type Parameters:
- K- the type of keys
- V- the type of mapped values
- Direct Known Subclasses:
- DefaultMapEntry,- UnmodifiableMapEntry
Abstract Pair class to assist with creating correct
 
Map.Entry implementations.- Since:
- 3.0
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractMapEntry(K key, V value) Constructs a new entry with the given key and given value.
- 
Method SummaryMethods inherited from class org.apache.commons.collections4.keyvalue.AbstractKeyValuegetKey, getValue, setKey, toString
- 
Constructor Details- 
AbstractMapEntryConstructs a new entry with the given key and given value.- Parameters:
- key- the key for the entry, may be null
- value- the value for the entry, may be null
 
 
- 
- 
Method Details- 
equalsCompares thisMap.Entrywith anotherMap.Entry.Implemented per API documentation of Map.Entry.equals(Object)
- 
hashCode
- 
setValueSets the value stored in thisMap.Entry.This Map.Entryis not connected to a Map, so only the local data is changed.
 
-