public abstract class AbstractSortedBagDecorator extends AbstractBagDecorator implements SortedBag
SortedBag to provide additional behaviour.
Methods are forwarded directly to the decorated bag.
collection| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSortedBagDecorator()
Constructor only used in deserialization, do not use otherwise.
|
protected |
AbstractSortedBagDecorator(SortedBag bag)
Constructor that wraps (not copies).
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Comparator |
comparator()
Returns the comparator associated with this sorted set, or null
if it uses its elements' natural ordering.
|
java.lang.Object |
first()
Returns the first (lowest) member.
|
protected SortedBag |
getSortedBag()
Gets the bag being decorated.
|
java.lang.Object |
last()
Returns the last (highest) member.
|
add, getBag, getCount, remove, uniqueSetadd, addAll, clear, contains, containsAll, equals, getCollection, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, add, containsAll, getCount, iterator, remove, remove, removeAll, retainAll, size, uniqueSetprotected AbstractSortedBagDecorator()
protected AbstractSortedBagDecorator(SortedBag bag)
bag - the bag to decorate, must not be nulljava.lang.IllegalArgumentException - if list is nullprotected SortedBag getSortedBag()
public java.lang.Object first()
SortedBagpublic java.lang.Object last()
SortedBagpublic java.util.Comparator comparator()
SortedBagcomparator in interface SortedBagCopyright © 2001-2025 Apache Software Foundation. All Rights Reserved.