org.apache.commons.collections.bag
public abstract class AbstractBagDecorator extends AbstractCollectionDecorator implements Bag
Bag
to provide additional behaviour.
Methods are forwarded directly to the decorated bag.
Since: Commons Collections 3.0
Version: $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $
Constructor Summary | |
---|---|
protected | AbstractBagDecorator()
Constructor only used in deserialization, do not use otherwise. |
protected | AbstractBagDecorator(Bag bag)
Constructor that wraps (not copies).
|
Method Summary | |
---|---|
boolean | add(Object object, int count) |
protected Bag | getBag()
Gets the bag being decorated.
|
int | getCount(Object object) |
boolean | remove(Object object, int count) |
Set | uniqueSet() |
Since: Commons Collections 3.1
Parameters: bag the bag to decorate, must not be null
Throws: IllegalArgumentException if list is null
Returns: the decorated bag