Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
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.UnmodifiableSortedBag
public final class UnmodifiableSortedBag
extends AbstractSortedBagDecorator
implements Unmodifiable, Serializable
SortedBag
to ensure it can't be altered.
This class is Serializable from Commons Collections 3.1.
Field Summary |
Fields inherited from class org.apache.commons.collections.collection.AbstractCollectionDecorator | |
collection |
Method Summary | |
boolean |
|
boolean |
|
boolean |
|
void |
|
static SortedBag | |
Iterator |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
Set |
Methods inherited from class org.apache.commons.collections.bag.AbstractSortedBagDecorator | |
comparator , first , getSortedBag , last |
Methods inherited from class org.apache.commons.collections.bag.AbstractBagDecorator | |
add , getBag , getCount , remove , uniqueSet |
Methods inherited from class org.apache.commons.collections.collection.AbstractCollectionDecorator | |
add , addAll , clear , contains , containsAll , equals , getCollection , hashCode , isEmpty , iterator , remove , removeAll , retainAll , size , toArray , toArray , toString |
public boolean addAll(Collection coll)
- Overrides:
- addAll in interface AbstractCollectionDecorator
public static SortedBag decorate(SortedBag bag)
Factory method to create an unmodifiable bag. If the bag passed in is already unmodifiable, it is returned.
- Parameters:
bag
- the bag to decorate, must not be null
- Returns:
- an unmodifiable SortedBag
public boolean remove(Object object, int count)
- Overrides:
- remove in interface AbstractBagDecorator
public boolean removeAll(Collection coll)
- Overrides:
- removeAll in interface AbstractCollectionDecorator
public boolean retainAll(Collection coll)
- Overrides:
- retainAll in interface AbstractCollectionDecorator