Bag
, java.util.Collection
, java.lang.Iterable
AbstractSortedBagDecorator
, PredicatedSortedBag
, SynchronizedSortedBag
, TransformedSortedBag
, TreeBag
, TreeBag
, UnmodifiableSortedBag
public interface SortedBag extends Bag
Bag
that maintains a sorted order among
its unique representative members.Modifier and Type | Method | 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.
|
java.lang.Object |
last() |
Returns the last (highest) member.
|
add, add, containsAll, getCount, iterator, remove, remove, removeAll, retainAll, size, uniqueSet
java.util.Comparator comparator()
java.lang.Object first()
java.lang.Object last()
Copyright © 2001-2017 Apache Software Foundation. All Rights Reserved.