java.lang.Object | +--org.apache.commons.collections.collection.AbstractCollectionDecorator | +--org.apache.commons.collections.collection.UnmodifiableCollectionAll Implemented Interfaces:
boolean | add(Object object) |
boolean | addAll(Collection coll) |
void | clear() |
static Collection | decorate(Collection coll) Factory method to create an unmodifiable collection. |
Iterator | iterator() |
boolean | remove(Object object) |
boolean | removeAll(Collection coll) |
boolean | retainAll(Collection coll) |
public boolean add(Object object)
public boolean addAll(Collection coll)
public void clear()
public static Collection decorate(Collection coll)
- if collection is nullpublic Iterator iterator()
public boolean remove(Object object)
public boolean removeAll(Collection coll)
public boolean retainAll(Collection coll)
Collection
to ensure it can't be altered.