public interface SortedBag extends Bag
Bag
that maintains a sorted order among
its unique representative members.Modifier and Type | Method and 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.
|
java.util.Comparator comparator()
java.lang.Object first()
java.lang.Object last()
Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.