org.apache.commons.collections
public interface SortedBag extends Bag
Bag
that maintains a sorted order among
its unique representative members.
Since: Commons Collections 2.0
Version: $Revision: 646777 $ $Date: 2008-04-10 13:33:15 +0100 (Thu, 10 Apr 2008) $
Method Summary | |
---|---|
Comparator | comparator()
Returns the comparator associated with this sorted set, or null
if it uses its elements' natural ordering.
|
Object | first()
Returns the first (lowest) member.
|
Object | last()
Returns the last (highest) member.
|
Returns: the comparator in use, or null if natural ordering
Returns: the first element in the sorted bag
Returns: the last element in the sorted bag