net.sf.molae.pipe.basic
Class DefaultMapEntry
java.lang.Object
|
+--net.sf.molae.pipe.basic.AbstractMapEntry
|
+--net.sf.molae.pipe.basic.DefaultMapEntry
- All Implemented Interfaces:
- Map.Entry
- public final class DefaultMapEntry
- extends AbstractMapEntry
A bean with two properties: key(inherited from
AbstractMapEntry) and value.
Intended for map implementations that use the map entry to store the values.
DefaultMapEntry
public DefaultMapEntry(Object key,
Object value)
- Constructs a new DefaultMapEntry object.
- Parameters:
key - the key corresponding to this entry.value - the value corresponding to this entry.
getValue
public Object getValue()
- Returns the value of the value property.
- Overrides:
getValue in class AbstractMapEntry
- Returns:
- the value of the value property
- See Also:
setValue(java.lang.Object)
setValue
public Object setValue(Object value)
- Sets the value of the value property.
- Overrides:
setValue in class AbstractMapEntry
- See Also:
getValue()