K
- the type of the keys in the mapV
- the type of the values in the mappublic interface OrderedMap<K,V> extends IterableMap<K,V>
Modifier and Type | Method and Description |
---|---|
K |
firstKey()
Gets the first key currently in this map.
|
K |
lastKey()
Gets the last key currently in this map.
|
OrderedMapIterator<K,V> |
mapIterator()
Obtains an
OrderedMapIterator over the map. |
K |
nextKey(K key)
Gets the next key after the one specified.
|
K |
previousKey(K key)
Gets the previous key before the one specified.
|
clear, put, putAll
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
OrderedMapIterator<K,V> mapIterator()
OrderedMapIterator
over the map.
A ordered map iterator is an efficient way of iterating over maps in both directions.
mapIterator
in interface IterableMap<K,V>
K firstKey()
NoSuchElementException
- if this map is emptyK lastKey()
NoSuchElementException
- if this map is emptyK nextKey(K key)
key
- the key to search for next fromCopyright © 2006–2022 Apache Software Foundation. All rights reserved.