Collections.SortedSet

Functions

NameSignature and Synopsis
comparatorObject comparator ( Object set )
Returns the comparator used to order the elements in this set, or null if this map uses the Comparable natural ordering of its elements.
firstObject first (Object set )
Returns the first (lowest) element currently in this set.
headSetObject headSet ( Object set, Object toElement )
Returns a view of the portion of this set whose elements are strictly less than toElement.
lastObject last ( Object set )
Returns the last (highest) element currently in this set.
subSetObject subSet ( Object set, Object fromElement ,Object toElement )
Returns a view of the portion of this set whose elements range from fromElement, inclusive, to toElement, exclusive. (If fromElement and toElement are equal, the returned set is empty.)
tailSetObject tailSet ( Object set, Object fromElement )
Returns a view of the portion of this set whose elements are greater than or equal to fromElement.