org.apache.commons.collections

Class BeanMap.MyMapEntry

Enclosing Class:
BeanMap
Implemented Interfaces:
Map.Entry, KeyValue

protected static class BeanMap.MyMapEntry
extends AbstractMapEntry

Map entry used by BeanMap.

Field Summary

Fields inherited from class org.apache.commons.collections.keyvalue.AbstractKeyValue

key, value

Constructor Summary

MyMapEntry(BeanMap owner, Object key, Object value)
Constructs a new MyMapEntry.

Method Summary

Object
setValue(Object value)
Sets the value.

Methods inherited from class org.apache.commons.collections.keyvalue.AbstractMapEntry

equals, hashCode, setValue

Methods inherited from class org.apache.commons.collections.keyvalue.AbstractKeyValue

getKey, getValue, toString

Constructor Details

MyMapEntry

protected MyMapEntry(BeanMap owner,
                     Object key,
                     Object value)
Constructs a new MyMapEntry.
Parameters:
owner - the BeanMap this entry belongs to
key - the key for this entry
value - the value for this entry

Method Details

setValue

public Object setValue(Object value)
Sets the value.
Overrides:
setValue in interface AbstractMapEntry
Parameters:
value - the new value for the entry
Returns:
the old value for the entry

Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.