public abstract class AbstractSortedBagDecorator<E> extends AbstractBagDecorator<E> implements SortedBag<E>
SortedBag
to provide additional behaviour.
Methods are forwarded directly to the decorated bag.
Modifier and Type | Method and Description |
---|---|
java.util.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.
|
E |
last()
Returns the last (highest) member.
|
add, equals, getCount, hashCode, remove, uniqueSet
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
add, add, containsAll, getCount, iterator, remove, remove, removeAll, retainAll, size, uniqueSet
public E first()
SortedBag
public E last()
SortedBag
public java.util.Comparator<? super E> comparator()
SortedBag
comparator
in interface SortedBag<E>
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"