net.sf.molae.pipe.trafo
Class ValueTransformedMapEntry<K,S,V>
java.lang.Object
net.sf.molae.pipe.basic.AbstractMapEntry<K,V>
net.sf.molae.pipe.trafo.ValueTransformedMapEntry<K,S,V>
- All Implemented Interfaces:
- Map.Entry<K,V>
public final class ValueTransformedMapEntry<K,S,V>
- extends AbstractMapEntry<K,V>
A map entry with a transformed value.
- Since:
- 1.1
Method Summary |
V |
getValue()
|
V |
setValue(V value)
Replaces the value corresponding to this entry with the specified value. |
ValueTransformedMapEntry
public ValueTransformedMapEntry(Map.Entry<K,S> base,
TwoWayTransformer<S,V> transformer)
- Constructs a ValueTransformedMapEntry object.
- Parameters:
base
- base map entrytransformer
- used transformer
- Throws:
NullPointerException
- if any of the specified objects is
null
.
getValue
public V getValue()
- Specified by:
getValue
in interface Map.Entry<K,V>
- Specified by:
getValue
in class AbstractMapEntry<K,V>
setValue
public V setValue(V value)
- Replaces the value corresponding to this entry with the specified value.
- Specified by:
setValue
in interface Map.Entry<K,V>
- Overrides:
setValue
in class AbstractMapEntry<K,V>
- Parameters:
value
- new value to be stored in this entry
- Returns:
- old value corresponding to the entry.
- Throws:
UnsupportedOperationException
- if the setValue
operation is not supported by the backing map entry.
ClassCastException
- depending on the base entry
and the transformer
IllegalArgumentException
- depending on the base entry
and the transformer
NullPointerException
- depending on the base entry
and the transformer- See Also:
getValue()