|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.collections15.collection.AbstractCollectionDecorator<E>
org.apache.commons.collections15.bag.AbstractBagDecorator<E>
org.apache.commons.collections15.bag.AbstractSortedBagDecorator<E>
public abstract class AbstractSortedBagDecorator<E>
Decorates another SortedBag to provide additional behaviour.
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.collections15.collection.AbstractCollectionDecorator |
|---|
collection |
| Constructor Summary | |
|---|---|
protected |
AbstractSortedBagDecorator()
Constructor only used in deserialization, do not use otherwise. |
protected |
AbstractSortedBagDecorator(SortedBag<E> bag)
Constructor that wraps (not copies). |
| Method Summary | |
|---|---|
Comparator<? super E> |
comparator()
Returns the comparator associated with this sorted set, or null if it uses its elements' natural ordering. |
E |
first()
Returns the first (lowest) member. |
protected SortedBag<E> |
getSortedBag()
Gets the bag being decorated. |
E |
last()
Returns the last (highest) member. |
| Methods inherited from class org.apache.commons.collections15.bag.AbstractBagDecorator |
|---|
add, getBag, getCount, remove, uniqueSet |
| Methods inherited from class org.apache.commons.collections15.collection.AbstractCollectionDecorator |
|---|
add, addAll, clear, contains, containsAll, equals, getCollection, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.commons.collections15.Bag |
|---|
add, add, containsAll, getCount, iterator, remove, remove, removeAll, retainAll, size, uniqueSet |
| Methods inherited from interface java.util.Collection |
|---|
addAll, clear, contains, equals, hashCode, isEmpty, toArray, toArray |
| Constructor Detail |
|---|
protected AbstractSortedBagDecorator()
protected AbstractSortedBagDecorator(SortedBag<E> bag)
bag - the bag to decorate, must not be null
IllegalArgumentException - if list is null| Method Detail |
|---|
protected SortedBag<E> getSortedBag()
public E first()
SortedBag
first in interface SortedBag<E>public E last()
SortedBag
last in interface SortedBag<E>public Comparator<? super E> comparator()
SortedBag
comparator in interface SortedBag<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||