public interface SortedBag extends Bag
Bag
that maintains a sorted order among
its unique representative members.Modifier and Type | Method and Description |
---|---|
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.
|
Comparator comparator()
Object first()
Object last()
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.