GeezerVison is showing docs.oracle.com — NavigableSet (Java Platform SE 8 )
Java™ Platform Standard Ed. 8
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
compact1, compact2, compact3
java.util
Interface NavigableSet<E>
-
-
Method Summary
All Methods Instance Methods Abstract Methods
| Modifier and Type |
Method |
Description |
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.
|
Iterator<E> |
descendingIterator() |
Returns an iterator over the elements in this set, in descending order.
|
NavigableSet<E> |
descendingSet() |
Returns a reverse order view of the elements contained in this set.
|
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.
|
SortedSet<E> |
headSet(E toElement) |
Returns a view of the portion of this set whose elements are
strictly less than toElement.
|
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.
|
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.
|
Iterator<E> |
iterator() |
Returns an iterator over the elements in this set, in ascending order.
|
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.
|
E |
pollFirst() |
Retrieves and removes the first (lowest) element,
or returns null if this set is empty.
|
E |
pollLast() |
Retrieves and removes the last (highest) element,
or returns null if this set is empty.
|
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.
|
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.
|
SortedSet<E> |
tailSet(E fromElement) |
Returns a view of the portion of this set whose elements are
greater than or equal to fromElement.
|
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.
|
-
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
-
-
Method Detail
-
descendingIterator
Iterator<E> descendingIterator()
Returns an iterator over the elements in this set, in descending order.
Equivalent in effect to descendingSet().iterator().
- Returns:
- an iterator over the elements in this set, in descending order
Java™ Platform Standard Ed. 8
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
|