Class ListOrderedMap.ListOrderedMapEntry
- java.lang.Object
-
- org.apache.commons.collections.keyvalue.AbstractKeyValue
-
- org.apache.commons.collections.keyvalue.AbstractMapEntry
-
- org.apache.commons.collections.map.ListOrderedMap.ListOrderedMapEntry
-
- All Implemented Interfaces:
java.util.Map.Entry,KeyValue
- Enclosing class:
- ListOrderedMap
static class ListOrderedMap.ListOrderedMapEntry extends AbstractMapEntry
-
-
Field Summary
Fields Modifier and Type Field Description private ListOrderedMapparent-
Fields inherited from class org.apache.commons.collections.keyvalue.AbstractKeyValue
key, value
-
-
Constructor Summary
Constructors Constructor Description ListOrderedMapEntry(ListOrderedMap parent, java.lang.Object key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetValue()Gets the value from the pair.java.lang.ObjectsetValue(java.lang.Object value)Sets the value stored in thisMap.Entry.-
Methods inherited from class org.apache.commons.collections.keyvalue.AbstractMapEntry
equals, hashCode
-
Methods inherited from class org.apache.commons.collections.keyvalue.AbstractKeyValue
getKey, toString
-
-
-
-
Field Detail
-
parent
private final ListOrderedMap parent
-
-
Constructor Detail
-
ListOrderedMapEntry
ListOrderedMapEntry(ListOrderedMap parent, java.lang.Object key)
-
-
Method Detail
-
getValue
public java.lang.Object getValue()
Description copied from class:AbstractKeyValueGets the value from the pair.- Specified by:
getValuein interfaceKeyValue- Specified by:
getValuein interfacejava.util.Map.Entry- Overrides:
getValuein classAbstractKeyValue- Returns:
- the value
-
setValue
public java.lang.Object setValue(java.lang.Object value)
Description copied from class:AbstractMapEntrySets the value stored in thisMap.Entry.This
Map.Entryis not connected to a Map, so only the local data is changed.- Specified by:
setValuein interfacejava.util.Map.Entry- Overrides:
setValuein classAbstractMapEntry- Parameters:
value- the new value- Returns:
- the previous value
-
-