Modifier and Type | Method and Description |
---|---|
Map.Entry<K,V> |
ceilingEntry(K key)
Answers an entry related with the smallest key greater than or equal to
the specified key, or null if no such key.
|
K |
ceilingKey(K key)
Answers the smallest key greater than or equal to the specified key, or
null if no such key.
|
NavigableSet<K> |
descendingKeySet()
Answers a NavigableSet view of the keys in descending order.
|
NavigableMap<K,V> |
descendingMap()
Answers a reverse order view of the map.
|
Map.Entry<K,V> |
firstEntry()
Answers the entry with the smallest key, or null if the map is empty.
|
Map.Entry<K,V> |
floorEntry(K key)
Answers an entry related with the biggest key less than or equal to the
specified key, or null if no such key.
|
K |
floorKey(K key)
Answers the biggest key less than or equal to the specified key, or null
if no such key.
|
NavigableMap<K,V> |
headMap(K endKey,
boolean inclusive)
Answers a view of the head of the map whose keys are smaller than (or
equal to, depends on inclusive argument) endKey.
|
Map.Entry<K,V> |
higherEntry(K key)
Answers an entry related with the smallest key greater than the specified
key, or null if no such key.
|
K |
higherKey(K key)
Answers the smallest key greater than the specified key, or null if no
such key.
|
Map.Entry<K,V> |
lastEntry()
Answers the entry with the biggest key, or null if the map is empty.
|
Map.Entry<K,V> |
lowerEntry(K key)
Answers an entry related with the biggest key less than the specified
key, or null if no such key.
|
K |
lowerKey(K key)
Answers the biggest key less than the specified key, or null if no such
key.
|
NavigableSet<K> |
navigableKeySet()
Answers a NavigableSet view of the keys in ascending order.
|
Map.Entry<K,V> |
pollFirstEntry()
Deletes and answers the entry with the smallest key, or null if the map
is empty.
|
Map.Entry<K,V> |
pollLastEntry()
Deletes and answers the entry with the biggest key, or null if the map is
empty.
|
NavigableMap<K,V> |
subMap(K startKey,
boolean startInclusive,
K endKey,
boolean endInclusive)
Answers a view of part of the map whose keys is from startKey to endKey.
|
NavigableMap<K,V> |
tailMap(K startKey,
boolean inclusive)
Answers a view of the tail of the map whose keys are bigger than (or
equal to, depends on inclusive argument) startKey.
|
Map.Entry<K,V> firstEntry()
Map.Entry<K,V> lastEntry()
Map.Entry<K,V> pollFirstEntry()
Map.Entry<K,V> pollLastEntry()
Map.Entry<K,V> ceilingEntry(K key)
key
- the keyClassCastException
- if the key cannot be compared with the keys in the mapNullPointerException
- if the key is null and the map can not contain null keyK ceilingKey(K key)
key
- the keyClassCastException
- if the key cannot be compared with the keys in the mapNullPointerException
- if the key is null and the map can not contain null keyMap.Entry<K,V> higherEntry(K key)
key
- the keyClassCastException
- if the key cannot be compared with the keys in the mapNullPointerException
- if the key is null and the map can not contain null keyK higherKey(K key)
key
- the keyClassCastException
- if the key cannot be compared with the keys in the mapNullPointerException
- if the key is null and the map can not contain null keyMap.Entry<K,V> floorEntry(K key)
key
- the keyClassCastException
- if the key cannot be compared with the keys in the mapNullPointerException
- if the key is null and the map can not contain null keyK floorKey(K key)
key
- the keyClassCastException
- if the key cannot be compared with the keys in the mapNullPointerException
- if the key is null and the map can not contain null keyMap.Entry<K,V> lowerEntry(K key)
key
- the keyClassCastException
- if the key cannot be compared with the keys in the mapNullPointerException
- if the key is null and the map can not contain null keyK lowerKey(K key)
key
- the keyClassCastException
- if the key cannot be compared with the keys in the mapNullPointerException
- if the key is null and the map can not contain null keyNavigableSet<K> navigableKeySet()
NavigableMap<K,V> descendingMap()
NavigableSet<K> descendingKeySet()
NavigableMap<K,V> subMap(K startKey, boolean startInclusive, K endKey, boolean endInclusive)
startKey
- the start keystartInclusive
- true if the start key is in the returned mapendKey
- the end keyendInclusive
- true if the end key is in the returned mapClassCastException
- when the class of the start or end key is inappropriate
for this SubMapNullPointerException
- when the start or end key is null and this SortedMap does
not support null keysIllegalArgumentException
- when the start key is greater than the end keyNavigableMap<K,V> headMap(K endKey, boolean inclusive)
endKey
- the end keyinclusive
- true if the end key is in the returned mapClassCastException
- when the class of the end key is inappropriate for this
SubMapNullPointerException
- when the end key is null and this SortedMap does not
support null keysIllegalArgumentException
- when the map is range-limited and end key is out of the
range of the mapNavigableMap<K,V> tailMap(K startKey, boolean inclusive)
startKey
- the start keyinclusive
- true if the start key is in the returned mapClassCastException
- when the class of the start key is inappropriate for this
SubMapNullPointerException
- when the start key is null and this SortedMap does not
support null keysIllegalArgumentException
- when the map is range-limited and start key is out of the
range of the map