Class java.util.Collections.SynchronizedSortedMap
java.lang.Object
|
+--java.util.Collections.SynchronizedMap
|
+--java.util.Collections.SynchronizedSortedMap
- static class Collections.SynchronizedSortedMap
- extends java.util.Collections.SynchronizedMap
- implements SortedMap
Methods inherited from class java.util.Collections.SynchronizedMap |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, putAll, put, remove, size, values |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Collections.SynchronizedSortedMap
Collections.SynchronizedSortedMap(SortedMap m)
Collections.SynchronizedSortedMap
Collections.SynchronizedSortedMap(SortedMap m,
java.lang.Object mutex)
comparator
public Comparator comparator()
- Description copied from interface:
Returns the Comparator associated with this SortedMap, or null
if it uses its keys' natural ordering.
- Specified by:
- comparator in interface SortedMap
subMap
public SortedMap subMap(java.lang.Object fromKey,
java.lang.Object toKey)
- Description copied from interface:
Returns a view of the portion of this SortedMap whose keys range
from fromKey, inclusive, to toKey, exclusive. The returned SortedMap
is backed by this SortedMap, so changes in the returned SortedMap are
reflected in this SortedMap, and vice-versa. The returned Map supports
all optional Map operations.
The Map returned by this method will throw an IllegalArgumentException
if the user attempts to insert a key outside the specified range.
- Specified by:
- subMap in interface SortedMap
headMap
public SortedMap headMap(java.lang.Object toKey)
- Description copied from interface:
Returns a view of the portion of this SortedMap whose keys are
strictly less than toKey. The returned SortedMap is backed by this
SortedMap, so changes in the returned SortedMap are reflected in this
SortedMap, and vice-versa. The returned Map supports all optional Map
operations.
The Map returned by this method will throw an IllegalArgumentException
if the user attempts to insert a key outside the specified range.
- Specified by:
- headMap in interface SortedMap
tailMap
public SortedMap tailMap(java.lang.Object fromKey)
- Description copied from interface:
Returns a view of the portion of this SortedMap whose keys are greater
than or equal to fromKey. The returned SortedMap is backed by this
SortedMap, so changes in the returned SortedMap are reflected in this
SortedMap, and vice-versa. The returned Map supports all optional Map
operations.
The Map returned by this method will throw an IllegalArgumentException
if the user attempts to insert a key outside the specified range.
- Specified by:
- tailMap in interface SortedMap
firstKey
public java.lang.Object firstKey()
- Description copied from interface:
Returns the first (lowest) key currently in this SortedMap.
- Specified by:
- firstKey in interface SortedMap
lastKey
public java.lang.Object lastKey()
- Description copied from interface:
Returns the last (highest) key currently in this SortedMap.
- Specified by:
- lastKey in interface SortedMap