| org.apache.commons.collections.SortedBag
All known Subclasses: org.apache.commons.collections.bag.TransformedSortedBag, org.apache.commons.collections.TreeBag, org.apache.commons.collections.bag.SynchronizedSortedBag, org.apache.commons.collections.bag.PredicatedSortedBag, org.apache.commons.collections.bag.AbstractSortedBagDecorator, org.apache.commons.collections.bag.TreeBag,
SortedBag | public interface SortedBag extends Bag(Code) | | Defines a type of Bag that maintains a sorted order among
its unique representative members.
since: Commons Collections 2.0 version: $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $ author: Chuck Burdick |
Method Summary | |
public Comparator | comparator() Returns the comparator associated with this sorted set, or null
if it uses its elements' natural ordering. | public Object | first() Returns the first (lowest) member. | public Object | last() Returns the last (highest) member. |
comparator | public Comparator comparator()(Code) | | Returns the comparator associated with this sorted set, or null
if it uses its elements' natural ordering.
the comparator in use, or null if natural ordering |
first | public Object first()(Code) | | Returns the first (lowest) member.
the first element in the sorted bag |
last | public Object last()(Code) | | Returns the last (highest) member.
the last element in the sorted bag |
|
|