Save This Page
Home » openjdk-7 » java » util » concurrent » [javadoc | source]
java.util.concurrent
static final class: ConcurrentSkipListMap.SubMap [javadoc | source]
java.lang.Object
   java.util.AbstractMap
      java.util.concurrent.ConcurrentSkipListMap$SubMap

All Implemented Interfaces:
    ConcurrentNavigableMap, Cloneable, Serializable, Map

Submaps returned by ConcurrentSkipListMap submap operations represent a subrange of mappings of their underlying maps. Instances of this class support all methods of their underlying maps, differing in that mappings outside their range are ignored, and attempts to add mappings outside their ranges result in IllegalArgumentException . Instances of this class are constructed only using the subMap, headMap, and tailMap methods of their underlying maps.
Nested Class Summary:
abstract class  SubMap.SubMapIter  Variant of main Iter class to traverse through submaps. 
final class  SubMap.SubMapValueIterator   
final class  SubMap.SubMapKeyIterator   
final class  SubMap.SubMapEntryIterator   
Fields inherited from java.util.AbstractMap:
keySet,  values
Constructor:
 SubMap(ConcurrentSkipListMap map,
    K fromKey,
    boolean fromInclusive,
    K toKey,
    boolean toInclusive,
    boolean isDescending) 
    Creates a new submap, initializing all fields
Method from java.util.concurrent.ConcurrentSkipListMap$SubMap Summary:
ceilingEntry,   ceilingKey,   clear,   comparator,   containsKey,   containsValue,   descendingKeySet,   descendingMap,   entryIterator,   entrySet,   firstEntry,   firstKey,   floorEntry,   floorKey,   get,   headMap,   headMap,   higherEntry,   higherKey,   isEmpty,   keyIterator,   keySet,   lastEntry,   lastKey,   lowerEntry,   lowerKey,   navigableKeySet,   pollFirstEntry,   pollLastEntry,   put,   putIfAbsent,   remove,   remove,   replace,   replace,   size,   subMap,   subMap,   tailMap,   tailMap,   valueIterator,   values
Methods from java.util.AbstractMap:
clear,   clone,   containsKey,   containsValue,   entrySet,   equals,   get,   hashCode,   isEmpty,   keySet,   put,   putAll,   remove,   size,   toString,   values
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.util.concurrent.ConcurrentSkipListMap$SubMap Detail:
 public Entry ceilingEntry(K key) 
 public K ceilingKey(K key) 
 public  void clear() 
 public Comparator comparator() 
 public boolean containsKey(Object key) 
 public boolean containsValue(Object value) 
 public NavigableSet descendingKeySet() 
 public ConcurrentSkipListMap.SubMap descendingMap() 
 Iterator entryIterator() 
 public Set entrySet() 
 public Entry firstEntry() 
 public K firstKey() 
 public Entry floorEntry(K key) 
 public K floorKey(K key) 
 public V get(Object key) 
 public ConcurrentSkipListMap.SubMap headMap(K toKey) 
 public ConcurrentSkipListMap.SubMap headMap(K toKey,
    boolean inclusive) 
 public Entry higherEntry(K key) 
 public K higherKey(K key) 
 public boolean isEmpty() 
 Iterator keyIterator() 
 public NavigableSet keySet() 
 public Entry lastEntry() 
 public K lastKey() 
 public Entry lowerEntry(K key) 
 public K lowerKey(K key) 
 public NavigableSet navigableKeySet() 
 public Entry pollFirstEntry() 
 public Entry pollLastEntry() 
 public V put(K key,
    V value) 
 public V putIfAbsent(K key,
    V value) 
 public V remove(Object key) 
 public boolean remove(Object key,
    Object value) 
 public V replace(K key,
    V value) 
 public boolean replace(K key,
    V oldValue,
    V newValue) 
 public int size() 
 public ConcurrentSkipListMap.SubMap subMap(K fromKey,
    K toKey) 
 public ConcurrentSkipListMap.SubMap subMap(K fromKey,
    boolean fromInclusive,
    K toKey,
    boolean toInclusive) 
 public ConcurrentSkipListMap.SubMap tailMap(K fromKey) 
 public ConcurrentSkipListMap.SubMap tailMap(K fromKey,
    boolean inclusive) 
 Iterator valueIterator() 
 public Collection values()