org.apache.commons.collections
Interface SortedBag
All Superinterfaces:
Collection, Bag
public interface
SortedBagimplements
Bag Defines a type of Bag
that maintains a sorted order among
its unique representative members.
- Commons Collections 2.0
- Chuck Burdick
comparator
public Comparator comparator()
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()
Returns the first (lowest) member.
- the first element in the sorted bag
last
public Object last()
Returns the last (highest) member.
- the last element in the sorted bag
Bag
that maintains a sorted order among its unique representative members.