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: 646777 $ $Date: 2008-04-10 13:33:15 +0100 (Thu, 10 Apr 2008) $
| 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