Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.commons.collections.collection.AbstractCollectionDecorator
org.apache.commons.collections.list.AbstractListDecorator
org.apache.commons.collections.list.AbstractSerializableListDecorator
org.apache.commons.collections.list.FixedSizeList
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).
This class is Serializable from Commons Collections 3.1.
Field Summary |
Fields inherited from class org.apache.commons.collections.collection.AbstractCollectionDecorator | |
collection |
Constructor Summary | |
|
Method Summary | |
boolean |
|
void |
|
boolean |
|
boolean |
|
void |
|
static List |
|
Object |
|
int |
|
boolean |
|
Iterator |
|
int |
|
ListIterator | |
ListIterator |
|
int |
|
boolean |
|
Object |
|
boolean |
|
boolean |
|
Object |
|
List |
|
Methods inherited from class org.apache.commons.collections.list.AbstractListDecorator | |
add , addAll , get , getList , indexOf , lastIndexOf , listIterator , listIterator , remove , set , subList |
Methods inherited from class org.apache.commons.collections.collection.AbstractCollectionDecorator | |
add , addAll , clear , contains , containsAll , equals , getCollection , hashCode , isEmpty , iterator , remove , removeAll , retainAll , size , toArray , toArray , toString |
protected FixedSizeList(List list)
Constructor that wraps (not copies).
- Parameters:
list
- the list to decorate, must not be null
public boolean addAll(Collection coll)
- Overrides:
- addAll in interface AbstractCollectionDecorator
public boolean addAll(int index, Collection coll)
- Overrides:
- addAll in interface AbstractListDecorator
public static List decorate(List list)
Factory method to create a fixed size list.
- Parameters:
list
- the list to decorate, must not be null
public int lastIndexOf(Object object)
- Overrides:
- lastIndexOf in interface AbstractListDecorator
public ListIterator listIterator()
- Overrides:
- listIterator in interface AbstractListDecorator
public ListIterator listIterator(int index)
- Overrides:
- listIterator in interface AbstractListDecorator
public boolean removeAll(Collection coll)
- Overrides:
- removeAll in interface AbstractCollectionDecorator
public boolean retainAll(Collection coll)
- Overrides:
- retainAll in interface AbstractCollectionDecorator
public List subList(int fromIndex, int toIndex)
- Overrides:
- subList in interface AbstractListDecorator