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 ListOrderedMap
parent
-
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.Object
getValue()
Gets the value from the pair.java.lang.Object
setValue(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:AbstractKeyValue
Gets the value from the pair.- Specified by:
getValue
in interfaceKeyValue
- Specified by:
getValue
in interfacejava.util.Map.Entry
- Overrides:
getValue
in classAbstractKeyValue
- Returns:
- the value
-
setValue
public java.lang.Object setValue(java.lang.Object value)
Description copied from class:AbstractMapEntry
Sets the value stored in thisMap.Entry
.This
Map.Entry
is not connected to a Map, so only the local data is changed.- Specified by:
setValue
in interfacejava.util.Map.Entry
- Overrides:
setValue
in classAbstractMapEntry
- Parameters:
value
- the new value- Returns:
- the previous value
-
-