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<E>
A
NavigableSet implementation based on a TreeMap . |
Modifier and Type | Method and Description |
---|---|
SortedSet<E> |
TreeSet.headSet(E toElement) |
SortedSet<E> |
SortedSet.headSet(E toElement)
Returns a view of the portion of this set whose elements are strictly less than toElement.
|
SortedSet<E> |
NavigableSet.headSet(E toElement)
Returns a view of the portion of this set whose elements are strictly less than toElement.
|
SortedSet<E> |
TreeSet.subSet(E fromElement,
E toElement) |
SortedSet<E> |
SortedSet.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> |
NavigableSet.subSet(E fromElement,
E toElement)
Returns a view of the portion of this set whose elements range from fromElement, inclusive, to
toElement, exclusive.
|
static <T> SortedSet<T> |
Collections.synchronizedSortedSet(SortedSet<T> s)
Returns a synchronized (thread-safe) sorted set backed by the specified sorted set.
|
SortedSet<E> |
TreeSet.tailSet(E fromElement) |
SortedSet<E> |
SortedSet.tailSet(E fromElement)
Returns a view of the portion of this set whose elements are greater than or equal to fromElement.
|
SortedSet<E> |
NavigableSet.tailSet(E fromElement)
Returns a view of the portion of this set whose elements are greater than or equal to fromElement.
|
static <T> SortedSet<T> |
Collections.unmodifiableSortedSet(SortedSet<T> s)
Returns an unmodifiable view of the specified sorted set.
|
Modifier and Type | Method and Description |
---|---|
static <T> SortedSet<T> |
Collections.synchronizedSortedSet(SortedSet<T> s)
Returns a synchronized (thread-safe) sorted set backed by the specified sorted set.
|
static <T> SortedSet<T> |
Collections.unmodifiableSortedSet(SortedSet<T> s)
Returns an unmodifiable view of the specified sorted set.
|
Constructor and Description |
---|
TreeSet(SortedSet<E> s)
Constructs a new tree set containing the same elements and using the same ordering as the specified sorted set.
|