| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.commons.collections.collection.AbstractCollectionDecoratororg.apache.commons.collections.bag.AbstractBagDecoratororg.apache.commons.collections.bag.UnmodifiableBagBag 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 Bag | |
Iterator |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
Set | |
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 Bag decorate(Bag 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 Bag
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