API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util. NavigableSet View Source
Author(s)
Doug Lea
Josh Bloch
Since
1.6
Version
Serial
Hierarchy
 Iterable
      Collection
          Set
              SortedSet
                  NavigableSet
Subinterfaces
Description
public interface NavigableSet
  A SortedSet extended with navigation methods reporting closest matches for given search targets.
See also:   
Methods
Hide/Show inherited methods
public E ceiling ( E e)
  Returns the least element in this set greater than or equal to the given element, or null if there is no such element.
public Iterator< E> descendingIterator ()
  Returns an iterator over the elements in this set, in descending order.
public NavigableSet< E> descendingSet ()
  Returns a reverse order view of the elements contained in this set.
public E floor ( E e)
  Returns the greatest element in this set less than or equal to the given element, or null if there is no such element.
public SortedSet< E> headSet ( E toElement) [Specified in SortedSet]
  Returns a view of the portion of this set whose elements are strictly less than toElement.
public NavigableSet< E> headSet ( E toElement, boolean inclusive)
  Returns a view of the portion of this set whose elements are less than (or equal to, if inclusive is true) toElement.
public E higher ( E e)
  Returns the least element in this set strictly greater than the given element, or null if there is no such element.
public Iterator< E> iterator ()
  Returns an iterator over the elements in this set, in ascending order.
public E lower ( E e)
  Returns the greatest element in this set strictly less than the given element, or null if there is no such element.
public E pollFirst ()
  Retrieves and removes the first (lowest) element, or returns null if this set is empty.
public E pollLast ()
  Retrieves and removes the last (highest) element, or returns null if this set is empty.
public NavigableSet< E> subSet ( E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
  Returns a view of the portion of this set whose elements range from fromElement to toElement.
public SortedSet< E> subSet ( E fromElement, E toElement) [Specified in SortedSet]
  Returns a view of the portion of this set whose elements range from fromElement, inclusive, to toElement, exclusive.
public SortedSet< E> tailSet ( E fromElement) [Specified in SortedSet]
  Returns a view of the portion of this set whose elements are greater than or equal to fromElement.
public NavigableSet< E> tailSet ( E fromElement, boolean inclusive)
  Returns a view of the portion of this set whose elements are greater than (or equal to, if inclusive is true) fromElement.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar