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