Unmodifiablepublic final class UnmodifiableList extends AbstractSerializableListDecorator implements Unmodifiable
List to ensure it can't be altered.
This class is Serializable from Commons Collections 3.1.
collection| Modifier and Type | Method | Description |
|---|---|---|
void |
add(int index,
java.lang.Object object) |
|
boolean |
add(java.lang.Object object) |
|
boolean |
addAll(int index,
java.util.Collection coll) |
|
boolean |
addAll(java.util.Collection coll) |
|
void |
clear() |
|
static java.util.List |
decorate(java.util.List list) |
Factory method to create an unmodifiable list.
|
java.util.Iterator |
iterator() |
|
java.util.ListIterator |
listIterator() |
|
java.util.ListIterator |
listIterator(int index) |
|
java.lang.Object |
remove(int index) |
|
boolean |
remove(java.lang.Object object) |
|
boolean |
removeAll(java.util.Collection coll) |
|
boolean |
retainAll(java.util.Collection coll) |
|
java.lang.Object |
set(int index,
java.lang.Object object) |
|
java.util.List |
subList(int fromIndex,
int toIndex) |
contains, containsAll, equals, getCollection, hashCode, isEmpty, size, toArray, toArray, toStringget, getList, indexOf, lastIndexOfpublic static java.util.List decorate(java.util.List list)
list - the list to decorate, must not be nulljava.lang.IllegalArgumentException - if list is nullpublic java.util.Iterator iterator()
iterator in class AbstractCollectionDecoratorpublic boolean add(java.lang.Object object)
add in class AbstractCollectionDecoratorpublic boolean addAll(java.util.Collection coll)
addAll in class AbstractCollectionDecoratorpublic void clear()
clear in class AbstractCollectionDecoratorpublic boolean remove(java.lang.Object object)
remove in class AbstractCollectionDecoratorpublic boolean removeAll(java.util.Collection coll)
removeAll in class AbstractCollectionDecoratorpublic boolean retainAll(java.util.Collection coll)
retainAll in class AbstractCollectionDecoratorpublic java.util.ListIterator listIterator()
listIterator in class AbstractListDecoratorpublic java.util.ListIterator listIterator(int index)
listIterator in class AbstractListDecoratorpublic void add(int index,
java.lang.Object object)
add in class AbstractListDecoratorpublic boolean addAll(int index,
java.util.Collection coll)
addAll in class AbstractListDecoratorpublic java.lang.Object remove(int index)
remove in class AbstractListDecoratorpublic java.lang.Object set(int index,
java.lang.Object object)
set in class AbstractListDecoratorpublic java.util.List subList(int fromIndex,
int toIndex)
subList in class AbstractListDecoratorCopyright © 2001-2017 Apache Software Foundation. All Rights Reserved.