net.sf.molae.pipe.basic
Class DefaultMapEntry<K,V>

java.lang.Object
  extended by net.sf.molae.pipe.basic.AbstractMapEntry<K,V>
      extended by 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.
 
Methods inherited from class net.sf.molae.pipe.basic.AbstractMapEntry
equals, getKey, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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()