E - the type to iterate over
public interface SortedBag<E> extends Bag<E>
Bag that maintains a sorted order among its unique representative members.
| Modifier and Type | Method and Description |
|---|---|
Comparator |
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, add, containsAll, getCount, iterator, remove, remove, removeAll, retainAll, size, uniqueSetaddAll, clear, contains, equals, hashCode, isEmpty, parallelStream, removeIf, spliterator, stream, toArray, toArrayComparator<? super E> comparator()
E first()
E last()