|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
K
- the type of the keys in the mapV
- the type of the values in the mappublic interface OrderedMap<K,V>
Defines a map that maintains order and allows both forward and backward iteration through that order.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Method Summary | |
---|---|
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. |
Methods inherited from interface java.util.Map |
---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from interface org.apache.commons.collections4.Put |
---|
clear, put, putAll |
Methods inherited from interface org.apache.commons.collections4.Get |
---|
containsKey, containsValue, entrySet, get, isEmpty, keySet, remove, size, values |
Method Detail |
---|
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 IterableGet<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 from
K previousKey(K key)
key
- the key to search for previous from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |