Package | Description |
---|---|
java.util |
Utilities
|
Modifier and Type | Interface and Description |
---|---|
interface |
NavigableSet<E>
A
SortedSet extended with navigation methods reporting
closest matches for given search targets. |
Modifier and Type | Class and Description |
---|---|
class |
TreeSet<T>
This class provides a TreeMap-backed implementation of the SortedSet
interface.
|
Modifier and Type | Method and Description |
---|---|
static <E> SortedSet<E> |
Collections.checkedSortedSet(SortedSet<E> s,
Class<E> type)
Returns a dynamically typesafe view of the given sorted set,
where any modification is first checked to ensure that the type
of the new data is appropriate.
|
SortedSet<E> |
SortedSet.headSet(E toElement)
Returns a view of the portion of the set strictly less than toElement.
|
SortedSet<E> |
NavigableSet.headSet(E toElement)
Returns a view of the portion of the set strictly less than toElement.
|
SortedSet<T> |
TreeSet.headSet(T to)
Returns a view of this Set including all elements less than
to . |
SortedSet<E> |
SortedSet.subSet(E fromElement,
E toElement)
Returns a view of the portion of the set greater than or equal to
fromElement, and strictly less than toElement.
|
SortedSet<E> |
NavigableSet.subSet(E fromElement,
E toElement)
Returns a view of the portion of the set greater than or equal to
fromElement, and strictly less than toElement.
|
SortedSet<T> |
TreeSet.subSet(T from,
T to)
Returns a view of this Set including all elements greater or equal to
from and less than to (a half-open interval). |
static <T> SortedSet<T> |
Collections.synchronizedSortedSet(SortedSet<T> s)
Returns a synchronized (thread-safe) sorted set wrapper backed by the
given set.
|
SortedSet<E> |
SortedSet.tailSet(E fromElement)
Returns a view of the portion of the set greater than or equal to
fromElement.
|
SortedSet<E> |
NavigableSet.tailSet(E fromElement)
Returns a view of the portion of the set greater than or equal to
fromElement.
|
SortedSet<T> |
TreeSet.tailSet(T from)
Returns a view of this Set including all elements greater or equal to
from . |
static <T> SortedSet<T> |
Collections.unmodifiableSortedSet(SortedSet<T> s)
Returns an unmodifiable view of the given sorted set.
|
Modifier and Type | Method and Description |
---|---|
static <E> SortedSet<E> |
Collections.checkedSortedSet(SortedSet<E> s,
Class<E> type)
Returns a dynamically typesafe view of the given sorted set,
where any modification is first checked to ensure that the type
of the new data is appropriate.
|
static <T> SortedSet<T> |
Collections.synchronizedSortedSet(SortedSet<T> s)
Returns a synchronized (thread-safe) sorted set wrapper backed by the
given set.
|
static <T> SortedSet<T> |
Collections.unmodifiableSortedSet(SortedSet<T> s)
Returns an unmodifiable view of the given sorted set.
|
Constructor and Description |
---|
PriorityQueue(SortedSet<? extends E> c) |
TreeSet(SortedSet<T> sortedSet)
Construct a new TreeSet, using the same key ordering as the supplied
SortedSet and containing all of the elements in the supplied SortedSet.
|