public abstract class TransformingList<OE,IE>
extends java.util.AbstractList<OE>
| Constructor and Description |
|---|
TransformingList(java.util.List<IE> fromList)
Creates a new transforming list wrapping
the inner list fromList.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
OE element) |
void |
clear() |
abstract OE |
convertFromInnerType(IE e)
Converts an element in the inner list to
an element of the outer type.
|
abstract IE |
convertToInnerType(OE e)
Converts an element of the outer type to
an element for the inner list.
|
OE |
get(int index) |
java.util.List<IE> |
getInnerList() |
java.util.Iterator<OE> |
iterator() |
java.util.ListIterator<OE> |
listIterator() |
java.util.ListIterator<OE> |
listIterator(int index) |
OE |
remove(int index) |
OE |
set(int index,
OE element) |
int |
size() |
add, addAll, equals, hashCode, indexOf, lastIndexOf, subListpublic TransformingList(java.util.List<IE> fromList)
fromList - the inner list.public java.util.List<IE> getInnerList()
public abstract OE convertFromInnerType(IE e)
e - the inner element.public abstract IE convertToInnerType(OE e)
e - the outer element.public void add(int index,
OE element)
public void clear()
public OE get(int index)
public java.util.Iterator<OE> iterator()
public java.util.ListIterator<OE> listIterator()
public java.util.ListIterator<OE> listIterator(int index)
public OE remove(int index)
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.