| 
JavaTM 2 Platform Standard Ed. 6  | 
|||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 使用 NavigableSet 的软件包 | |
|---|---|
| java.util | 包含 collection 框架、遗留的 collection 类、事件模型、日期和时间设施、国际化和各种实用工具类(字符串标记生成器、随机数生成器和位数组)。 | 
| java.util.concurrent | 在并发编程中很常用的实用工具类。 | 
| java.util 中 NavigableSet 的使用 | 
|---|
| 实现 NavigableSet 的 java.util 中的类 | |
|---|---|
 class | 
TreeSet<E>
基于 TreeMap 的 NavigableSet 实现。 | 
| 返回 NavigableSet 的 java.util 中的方法 | |
|---|---|
 NavigableSet<K> | 
TreeMap.descendingKeySet()
 | 
 NavigableSet<K> | 
NavigableMap.descendingKeySet()
返回此映射中所包含键的逆序 NavigableSet 视图。 | 
 NavigableSet<E> | 
TreeSet.descendingSet()
 | 
 NavigableSet<E> | 
NavigableSet.descendingSet()
返回此 set 中所包含元素的逆序视图。  | 
 NavigableSet<E> | 
TreeSet.headSet(E toElement,
boolean inclusive)
 | 
 NavigableSet<E> | 
NavigableSet.headSet(E toElement,
boolean inclusive)
返回此 set 的部分视图,其元素小于(或等于,如果 inclusive 为 true)toElement。 | 
 NavigableSet<K> | 
TreeMap.navigableKeySet()
 | 
 NavigableSet<K> | 
NavigableMap.navigableKeySet()
返回此映射中所包含键的 NavigableSet 视图。 | 
 NavigableSet<E> | 
TreeSet.subSet(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive)
 | 
 NavigableSet<E> | 
NavigableSet.subSet(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive)
返回此 set 的部分视图,其元素范围从 fromElement 到 toElement。 | 
 NavigableSet<E> | 
TreeSet.tailSet(E fromElement,
boolean inclusive)
 | 
 NavigableSet<E> | 
NavigableSet.tailSet(E fromElement,
boolean inclusive)
返回此 set 的部分视图,其元素大于(或等于,如果 inclusive 为 true)fromElement。 | 
| java.util.concurrent 中 NavigableSet 的使用 | 
|---|
| 实现 NavigableSet 的 java.util.concurrent 中的类 | |
|---|---|
 class | 
ConcurrentSkipListSet<E>
一个基于 ConcurrentSkipListMap 的可缩放并发 NavigableSet 实现。 | 
| 返回 NavigableSet 的 java.util.concurrent 中的方法 | |
|---|---|
 NavigableSet<K> | 
ConcurrentNavigableMap.descendingKeySet()
返回此映射中所包含键的逆序 NavigableSet 视图。 | 
 NavigableSet<K> | 
ConcurrentSkipListMap.descendingKeySet()
 | 
 NavigableSet<E> | 
ConcurrentSkipListSet.descendingSet()
返回此 set 中所包含元素的逆序视图。  | 
 NavigableSet<E> | 
ConcurrentSkipListSet.headSet(E toElement)
 | 
 NavigableSet<E> | 
ConcurrentSkipListSet.headSet(E toElement,
boolean inclusive)
 | 
 NavigableSet<K> | 
ConcurrentNavigableMap.keySet()
返回此映射中所包含键的 NavigableSet 视图。 | 
 NavigableSet<K> | 
ConcurrentSkipListMap.keySet()
返回此映射中所包含键的 NavigableSet 视图。 | 
 NavigableSet<K> | 
ConcurrentNavigableMap.navigableKeySet()
返回此映射中所包含键的 NavigableSet 视图。 | 
 NavigableSet<K> | 
ConcurrentSkipListMap.navigableKeySet()
 | 
 NavigableSet<E> | 
ConcurrentSkipListSet.subSet(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive)
 | 
 NavigableSet<E> | 
ConcurrentSkipListSet.subSet(E fromElement,
E toElement)
 | 
 NavigableSet<E> | 
ConcurrentSkipListSet.tailSet(E fromElement)
 | 
 NavigableSet<E> | 
ConcurrentSkipListSet.tailSet(E fromElement,
boolean inclusive)
 | 
  | 
JavaTM 2 Platform Standard Ed. 6  | 
|||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only。