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