软件包 | 描述 |
---|---|
java.util |
包含集合框架、遗留的集合类、事件模型、日期和时间的设施、国际化和各种实用工具类(一个字符串标记,一个随机数发生器,和一位阵列)。
|
java.util.concurrent |
在并发编程中常用的实用类。
|
Modifier and Type | Interface and Description |
---|---|
interface |
NavigableSet<E>
扩展的导航方法报告最近匹配给定的搜索目标
SortedSet 。
|
Modifier and Type | Class and Description |
---|---|
class |
TreeSet<E>
基于
TreeMap
NavigableSet 实施。
|
Modifier and Type | Method and Description |
---|---|
static <E> SortedSet<E> |
Collections.checkedSortedSet(SortedSet<E> s, 类<E> type)
返回一个动态类型安全的查看指定的排序设置。
|
static <E> SortedSet<E> |
Collections.emptySortedSet()
返回一个空的排序集(不可变)。
|
SortedSet<E> |
NavigableSet.headSet(E toElement)
返回从这个集合的元素是严格小于
toElement部分。
|
SortedSet<E> |
TreeSet.headSet(E toElement) |
SortedSet<E> |
SortedSet.headSet(E toElement)
返回从这个集合的元素是严格小于
toElement部分。
|
SortedSet<E> |
NavigableSet.subSet(E fromElement, E toElement)
返回从这个集合的元素范围从
fromElement,包容的部分
toElement,独家。
|
SortedSet<E> |
TreeSet.subSet(E fromElement, E toElement) |
SortedSet<E> |
SortedSet.subSet(E fromElement, E toElement)
返回从这个集合的元素范围从
fromElement,包容的部分
toElement,独家。
|
static <T> SortedSet<T> |
Collections.synchronizedSortedSet(SortedSet<T> s)
返回一个由指定的排序集支持的同步(线程安全)排序集。
|
SortedSet<E> |
NavigableSet.tailSet(E fromElement)
返回从这个集合的元素都大于或等于
fromElement部分。
|
SortedSet<E> |
TreeSet.tailSet(E fromElement) |
SortedSet<E> |
SortedSet.tailSet(E fromElement)
返回从这个集合的元素都大于或等于
fromElement部分。
|
static <T> SortedSet<T> |
Collections.unmodifiableSortedSet(SortedSet<T> s)
返回指定的排序设置不可修改的视图。
|
Modifier and Type | Method and Description |
---|---|
static <E> SortedSet<E> |
Collections.checkedSortedSet(SortedSet<E> s, 类<E> type)
返回一个动态类型安全的查看指定的排序设置。
|
static <T> SortedSet<T> |
Collections.synchronizedSortedSet(SortedSet<T> s)
返回一个由指定的排序集支持的同步(线程安全)排序集。
|
static <T> SortedSet<T> |
Collections.unmodifiableSortedSet(SortedSet<T> s)
返回指定的排序设置不可修改的视图。
|
Constructor and Description |
---|
PriorityQueue(SortedSet<? extends E> c)
创建一个
PriorityQueue 含有指定排序的集合中的元素。
|
TreeSet(SortedSet<E> s)
构造一个包含相同元素的新树集,并使用相同的排序作为指定的排序集。
|
Modifier and Type | Class and Description |
---|---|
class |
ConcurrentSkipListSet<E>
一个可扩展的并行
NavigableSet 实现基于
ConcurrentSkipListMap 。
|
Constructor and Description |
---|
ConcurrentSkipListSet(SortedSet<E> s)
构造一个包含相同元素的新集合,并使用相同的排序作为指定的排序集。
|
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, 2014, Oracle and/or its affiliates. All rights reserved.