java.lang.Object | +--org.apache.commons.collections.collection.AbstractCollectionDecorator | +--org.apache.commons.collections.list.AbstractListDecorator | +--org.apache.commons.collections.list.FixedSizeListAll Implemented Interfaces:
FixedSizeList(List list) Constructor that wraps (not copies). |
boolean | add(Object object) |
void | add(int index, Object object) |
boolean | addAll(Collection coll) |
boolean | addAll(int index, Collection coll) |
void | clear() |
static List | decorate(List list) Factory method to create a fixed size list. |
Object | get(int index) |
int | indexOf(Object object) |
boolean | isFull() |
Iterator | iterator() |
int | lastIndexOf(Object object) |
ListIterator | |
ListIterator | listIterator(int index) |
int | maxSize() |
Object | remove(int index) |
boolean | remove(Object object) |
boolean | removeAll(Collection coll) |
boolean | retainAll(Collection coll) |
Object | set(int index, Object object) |
List | subList(int fromIndex, int toIndex) |
protected FixedSizeList(List list)
- if list is nullpublic void add(int index, Object object)
public boolean add(Object object)
public boolean addAll(Collection coll)
public boolean addAll(int index, Collection coll)
public void clear()
public static List decorate(List list)
- if list is nullpublic Object get(int index)
public int indexOf(Object object)
public boolean isFull()
public Iterator iterator()
public int lastIndexOf(Object object)
public ListIterator listIterator()
public ListIterator listIterator(int index)
public int maxSize()
public Object remove(int index)
public boolean remove(Object object)
public boolean removeAll(Collection coll)
public boolean retainAll(Collection coll)
public Object set(int index, Object object)
public List subList(int fromIndex, int toIndex)
List
to fix the size preventing add/remove. The add, remove, clear and retain operations are unsupported. The set method is allowed (as it doesn't change the list size).