SortedBag to provide additional behaviour.
Methods are forwarded directly to the decorated bag.
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
Hides org. |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | AbstractSortedBagDecorator(final SortedBag<E>
the bag to decorate, must not be null bag)Constructor that wraps (not copies). |
| Modifier and Type | Method and Description |
|---|---|
| public Comparator | comparator()
Implements org. |
| protected SortedBag | Returns: the decorated bagOverrides org. |
| public E | first()
Implements org. |
| public E |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. Serialization version | |
| AbstractSortedBagDecorator | back to summary |
|---|---|
| protected AbstractSortedBagDecorator() Constructor only used in deserialization, do not use otherwise.
| |
| AbstractSortedBagDecorator | back to summary |
|---|---|
| protected AbstractSortedBagDecorator(final SortedBag<E> bag) Constructor that wraps (not copies).
| |
| comparator | back to summary |
|---|---|
| public Comparator Implements org. Doc from org. Returns the comparator associated with this sorted set, or null if it uses its elements' natural ordering.
| |
| decorated | back to summary |
|---|---|
| protected SortedBag Overrides org. Gets the bag being decorated. | |
| first | back to summary |
|---|---|
| public E first() Implements org. Doc from org. Returns the first (lowest) member.
| |
| last | back to summary |
|---|---|
| public E last() Implements org. Doc from org. Returns the last (highest) member.
| |