java.lang.Object | +--org.apache.commons.collections.collection.AbstractCollectionDecorator | +--org.apache.commons.collections.bag.AbstractBagDecoratorAll Implemented Interfaces:
AbstractBagDecorator(Bag bag) Constructor that wraps (not copies). |
boolean | add(Object object, int count) |
getBag() Gets the bag being decorated. | |
int | getCount(Object object) |
boolean | remove(Object object, int count) |
Set |
protected AbstractBagDecorator(Bag bag)
- if list is nullpublic boolean add(Object object, int count)
protected Bag getBag()
public int getCount(Object object)
public boolean remove(Object object, int count)
public Set uniqueSet()
Bag
to provide additional behaviour. Methods are forwarded directly to the decorated bag.