| Package | Description |
|---|---|
| java.util |
| Modifier and Type | Interface and Description |
|---|---|
interface |
NavigableSet<E>
NavigableSet is a SortedSet with navigation methods answering the closest
matches for specified item.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TreeSet<E>
TreeSet is an implementation of SortedSet.
|
| Modifier and Type | Method and Description |
|---|---|
SortedSet<E> |
TreeSet.headSet(E end)
Answers a SortedSet of the specified portion of this TreeSet which
contains elements less than the end element.
|
SortedSet<E> |
SortedSet.headSet(E end)
Returns a
SortedSet of the specified portion of this
SortedSet which contains elements less than the end element. |
SortedSet<E> |
TreeSet.subSet(E start,
E end)
Answers a SortedSet of the specified portion of this TreeSet which
contains elements greater or equal to the start element but less than the
end element.
|
SortedSet<E> |
SortedSet.subSet(E start,
E end)
Returns a
SortedSet of the specified portion of this
SortedSet which contains elements greater or equal to the start
element but less than the end element. |
static <E> SortedSet<E> |
Collections.synchronizedSortedSet(SortedSet<E> set)
Returns a wrapper on the specified sorted set which synchronizes all
access to the sorted set.
|
SortedSet<E> |
TreeSet.tailSet(E start)
Answers a SortedSet of the specified portion of this TreeSet which
contains elements greater or equal to the start element.
|
SortedSet<E> |
SortedSet.tailSet(E start)
Returns a
SortedSet of the specified portion of this
SortedSet which contains elements greater or equal to the start
element. |
static <E> SortedSet<E> |
Collections.unmodifiableSortedSet(SortedSet<E> set)
Returns a wrapper on the specified sorted set which throws an
UnsupportedOperationException whenever an attempt is made to
modify the sorted set. |
| Modifier and Type | Method and Description |
|---|---|
static <E> SortedSet<E> |
Collections.synchronizedSortedSet(SortedSet<E> set)
Returns a wrapper on the specified sorted set which synchronizes all
access to the sorted set.
|
static <E> SortedSet<E> |
Collections.unmodifiableSortedSet(SortedSet<E> set)
Returns a wrapper on the specified sorted set which throws an
UnsupportedOperationException whenever an attempt is made to
modify the sorted set. |
| Constructor and Description |
|---|
PriorityQueue(SortedSet<? extends E> c)
Constructs a priority queue that contains the elements of a sorted set.
|
TreeSet(SortedSet<E> set)
Constructs a new instance of
TreeSet containing the elements of
the specified SortedSet and using the same Comparator. |
Copyright © 2024. All rights reserved.