API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util. SortedSet View Source
Author(s)
Josh Bloch
Since
1.2
Version
1.32, 04/21/06
Serial
Hierarchy
 Iterable
      Collection
          Set
              SortedSet
Subinterfaces
Description
public interface SortedSet
  A Set that further provides a total ordering on its elements.
Methods
Hide/Show inherited methods
public Comparator<Object> comparator ()
  Returns the comparator used to order the elements in this set, or null if this set uses the natural ordering of its elements.
public E first ()
  Returns the first (lowest) element currently in this set.
public SortedSet< E> headSet ( E toElement)
  Returns a view of the portion of this set whose elements are strictly less than toElement.
public E last ()
  Returns the last (highest) element currently in this set.
public SortedSet< E> subSet ( E fromElement, E toElement)
  Returns a view of the portion of this set whose elements range from fromElement, inclusive, to toElement, exclusive.
public SortedSet< E> tailSet ( E fromElement)
  Returns a view of the portion of this set whose elements are greater than or equal to fromElement.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar