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