net.sf.molae.pipe.genimpl
Class ListBackedMapEntry
java.lang.Object
|
+--net.sf.molae.pipe.basic.AbstractMapEntry
|
+--net.sf.molae.pipe.genimpl.ListBackedMapEntry
- All Implemented Interfaces:
- Map.Entry
- public final class ListBackedMapEntry
- extends AbstractMapEntry
A map entry pointing to a list element with a specified index.
- Since:
- 1.1
ListBackedMapEntry
public ListBackedMapEntry(Object key,
List base,
int index)
- Constructs a ListBackedMapEntry.
- Parameters:
key - key of the entrybase - a list containing the value of this entryindex - of the value of this entry
getValue
public Object getValue()
- Overrides:
getValue in class AbstractMapEntry
setValue
public Object setValue(Object value)
- Replaces the value corresponding to this entry with the specified value.
- Overrides:
setValue in class AbstractMapEntry
- Parameters:
value - new value to be stored in this entry- Returns:
- old value corresponding to the entry.
- Throws:
UnsupportedOperationException - if the set
operation is not supported by the backing list.ClassCastException - depending on the base listIllegalArgumentException - depending on the base list- See Also:
getValue()