Package org.apache.commons.collections
Class BeanMap.MyMapEntry
- java.lang.Object
-
- org.apache.commons.collections.keyvalue.AbstractKeyValue
-
- org.apache.commons.collections.keyvalue.AbstractMapEntry
-
- org.apache.commons.collections.BeanMap.MyMapEntry
-
- All Implemented Interfaces:
java.util.Map.Entry
,KeyValue
- Enclosing class:
- BeanMap
protected static class BeanMap.MyMapEntry extends AbstractMapEntry
Map entry used byBeanMap
.
-
-
Field Summary
Fields Modifier and Type Field Description private BeanMap
owner
-
Fields inherited from class org.apache.commons.collections.keyvalue.AbstractKeyValue
key, value
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MyMapEntry(BeanMap owner, java.lang.Object key, java.lang.Object value)
Constructs a newMyMapEntry
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
setValue(java.lang.Object value)
Sets the value.-
Methods inherited from class org.apache.commons.collections.keyvalue.AbstractMapEntry
equals, hashCode
-
Methods inherited from class org.apache.commons.collections.keyvalue.AbstractKeyValue
getKey, getValue, toString
-
-
-
-
Field Detail
-
owner
private BeanMap owner
-
-
Constructor Detail
-
MyMapEntry
protected MyMapEntry(BeanMap owner, java.lang.Object key, java.lang.Object value)
Constructs a newMyMapEntry
.- Parameters:
owner
- the BeanMap this entry belongs tokey
- the key for this entryvalue
- the value for this entry
-
-
Method Detail
-
setValue
public java.lang.Object setValue(java.lang.Object value)
Sets the value.- Specified by:
setValue
in interfacejava.util.Map.Entry
- Overrides:
setValue
in classAbstractMapEntry
- Parameters:
value
- the new value for the entry- Returns:
- the old value for the entry
-
-