Top Description Methods
org.apache.commons.collections4

public Interface OrderedMapIterator<K, V>

extends MapIterator<K, V>, OrderedIterator<K>
Known Direct Implementers
org.apache.commons.collections4.bidimap.DualTreeBidiMap.BidiOrderedMapIterator, org.apache.commons.collections4.bidimap.TreeBidiMap.ViewMapIterator, org.apache.commons.collections4.bidimap.TreeBidiMap.InverseViewMapIterator, org.apache.commons.collections4.iterators.AbstractOrderedMapIteratorDecorator, org.apache.commons.collections4.iterators.EmptyOrderedMapIterator, org.apache.commons.collections4.iterators.UnmodifiableOrderedMapIterator, org.apache.commons.collections4.map.AbstractLinkedMap.LinkMapIterator, org.apache.commons.collections4.map.AbstractSortedMapDecorator.SortedMapIterator, org.apache.commons.collections4.map.ListOrderedMap.ListOrderedMapIterator, org.apache.commons.collections4.map.SingletonMap.SingletonMapIterator, org.apache.commons.collections4.trie.AbstractPatriciaTrie.TrieMapIterator
Type Parameters
<K>
the type of the keys in the map
<V>
the type of the values in the map

Defines an iterator that operates over an ordered Map.

This iterator allows both forward and reverse iteration through the map.

Since
3.0

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the iterator has a previous element
hasPrevious
()

Redeclares org.apache.commons.collections4.OrderedIterator.hasPrevious.

Checks to see if there is a previous entry that can be iterated to.
public K

Returns:

the previous key in the iteration
previous
()

Redeclares org.apache.commons.collections4.OrderedIterator.previous.

Gets the previous key from the Map.
Inherited from org.apache.commons.collections4.MapIterator:
getKeygetValuehasNextnextremovesetValue

Method Detail

hasPreviousback to summary
public boolean hasPrevious()

Redeclares org.apache.commons.collections4.OrderedIterator.hasPrevious.

Checks to see if there is a previous entry that can be iterated to.

Returns:boolean

true if the iterator has a previous element

Annotations
@Override
previousback to summary
public K previous()

Redeclares org.apache.commons.collections4.OrderedIterator.previous.

Gets the previous key from the Map.

Returns:K

the previous key in the iteration

Annotations
@Override
Exceptions
NoSuchElementException:
if the iteration is finished