org.apache.commons.collections.list
public final class UnmodifiableList extends AbstractSerializableListDecorator implements Unmodifiable
List
to ensure it can't be altered.
This class is Serializable from Commons Collections 3.1.
Since: Commons Collections 3.0
Version: $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $
Method Summary | |
---|---|
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 an unmodifiable list.
|
Iterator | iterator() |
ListIterator | listIterator() |
ListIterator | listIterator(int index) |
boolean | remove(Object object) |
Object | remove(int index) |
boolean | removeAll(Collection coll) |
boolean | retainAll(Collection coll) |
Object | set(int index, Object object) |
List | subList(int fromIndex, int toIndex) |
Parameters: list the list to decorate, must not be null
Throws: IllegalArgumentException if list is null