E - the type to iterate overBag<E>, java.util.Collection<E>, java.lang.Iterable<E>AbstractSortedBagDecorator, CollectionSortedBag, PredicatedSortedBag, SynchronizedSortedBag, TransformedSortedBag, TreeBag, UnmodifiableSortedBagpublic interface SortedBag<E> extends Bag<E>
Bag that maintains a sorted order among
its unique representative members.| Modifier and Type | Method | 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, add, containsAll, getCount, iterator, remove, remove, removeAll, retainAll, size, uniqueSetjava.util.Comparator<? super E> comparator()
E first()
E last()
Copyright © 2001-2019 - Apache Software Foundation