| Package | Description |
|---|---|
| java.util |
Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).
|
| java.util.concurrent |
Utility classes commonly useful in concurrent programming.
|
| 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 |
|---|---|
static <E> SortedSet |
Collections.checkedSortedSet(SortedSet
Returns a dynamically typesafe view of the specified sorted set.
|
static <E> SortedSet |
Collections.emptySortedSet()
Returns an empty sorted set (immutable).
|
SortedSet |
NavigableSet.headSet(E toElement)
Returns a view of the portion of this set whose elements are strictly less than
toElement.
|
SortedSet |
TreeSet.headSet(E toElement)
|
SortedSet |
SortedSet.headSet(E toElement)
Returns a view of the portion of this set whose elements are strictly less than
toElement.
|
SortedSet |
NavigableSet.subSet(E fromElement, E toElement)
Returns a view of the portion of this set whose elements range from
fromElement, inclusive, to
toElement, exclusive.
|
SortedSet |
TreeSet.subSet(E fromElement, E toElement)
|
SortedSet |
SortedSet.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 |
Collections.synchronizedSortedSet(SortedSet
Returns a synchronized (thread-safe) sorted set backed by the specified sorted set.
|
SortedSet |
NavigableSet.tailSet(E fromElement)
Returns a view of the portion of this set whose elements are greater than or equal to
fromElement.
|
SortedSet |
TreeSet.tailSet(E fromElement)
|
SortedSet |
SortedSet.tailSet(E fromElement)
Returns a view of the portion of this set whose elements are greater than or equal to
fromElement.
|
static <T> SortedSet |
Collections.unmodifiableSortedSet(SortedSet
Returns an unmodifiable view of the specified sorted set.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> SortedSet |
Collections.checkedSortedSet(SortedSet
Returns a dynamically typesafe view of the specified sorted set.
|
static <T> SortedSet |
Collections.synchronizedSortedSet(SortedSet
Returns a synchronized (thread-safe) sorted set backed by the specified sorted set.
|
static <T> SortedSet |
Collections.unmodifiableSortedSet(SortedSet
Returns an unmodifiable view of the specified sorted set.
|
| Constructor and Description | |
|---|---|
PriorityQueue(SortedSet
Creates a
PriorityQueue containing the elements in the specified sorted set.
|
|
TreeSet(SortedSet
Constructs a new tree set containing the same elements and using the same ordering as the specified sorted set.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ConcurrentSkipListSet<E>
A scalable concurrent
NavigableSet implementation based on a
ConcurrentSkipListMap.
|
| Constructor and Description | |
|---|---|
ConcurrentSkipListSet(SortedSet
Constructs a new set containing the same elements and using the same ordering as the specified sorted set.
|