org.apache.commons.collections.bag
public abstract class AbstractSortedBagDecorator extends AbstractBagDecorator implements SortedBag
SortedBag to provide additional behaviour.
Methods are forwarded directly to the decorated bag.
Since: Commons Collections 3.0
Version: $Revision: 646777 $ $Date: 2008-04-10 13:33:15 +0100 (Thu, 10 Apr 2008) $
| Constructor Summary | |
|---|---|
| protected | AbstractSortedBagDecorator()
Constructor only used in deserialization, do not use otherwise. |
| protected | AbstractSortedBagDecorator(SortedBag bag)
Constructor that wraps (not copies).
|
| Method Summary | |
|---|---|
| Comparator | comparator() |
| Object | first() |
| protected SortedBag | getSortedBag()
Gets the bag being decorated.
|
| Object | last() |
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