java.lang.Object | +--org.apache.commons.collections.collection.AbstractCollectionDecorator | +--org.apache.commons.collections.collection.TransformedCollection | +--org.apache.commons.collections.list.TransformedListAll Implemented Interfaces:
TransformedList(List list, Transformer transformer) Constructor that wraps (not copies). |
void | add(int index, Object object) |
boolean | addAll(int index, Collection coll) |
static List | decorate(List list, Transformer transformer) Factory method to create a transforming list. |
Object | get(int index) |
List | getList() Gets the decorated list. |
int | indexOf(Object object) |
int | lastIndexOf(Object object) |
ListIterator | |
ListIterator | listIterator(int i) |
Object | remove(int index) |
Object | set(int index, Object object) |
List | subList(int fromIndex, int toIndex) |
protected TransformedList(List list, Transformer transformer)
- if list or transformer is nullpublic void add(int index, Object object)
public boolean addAll(int index, Collection coll)
public static List decorate(List list, Transformer transformer)
- if list or transformer is nullpublic Object get(int index)
protected List getList()
public int indexOf(Object object)
public int lastIndexOf(Object object)
public ListIterator listIterator()
public ListIterator listIterator(int i)
public Object remove(int index)
public Object set(int index, Object object)
public List subList(int fromIndex, int toIndex)
List
to transform objects that are added. The add and set methods are affected by this class. Thus objects must be removed or searched for using their transformed form. For example, if the transformation converts Strings to Integers, you must use the Integer form to remove objects.