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 by BeanMap
.
Constructor Summary |
protected |
BeanMap.MyMapEntry(BeanMap owner,
java.lang.Object key,
java.lang.Object value)
Constructs a new MyMapEntry . |
Method Summary |
java.lang.Object |
setValue(java.lang.Object value)
Sets the value. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map.Entry |
getKey, getValue |
BeanMap.MyMapEntry
protected BeanMap.MyMapEntry(BeanMap owner,
java.lang.Object key,
java.lang.Object value)
- Constructs a new
MyMapEntry
.
- Parameters:
owner
- the BeanMap this entry belongs tokey
- the key for this entryvalue
- the value for this entry
setValue
public java.lang.Object setValue(java.lang.Object value)
- Sets the value.
- Specified by:
setValue
in interface java.util.Map.Entry
- Overrides:
setValue
in class AbstractMapEntry
- Parameters:
value
- the new value for the entry
- Returns:
- the old value for the entry
Copyright © 2001-2008 The Apache Software Foundation. All Rights Reserved.