public interface

OrderedMapIterator

implements MapIterator OrderedIterator
org.apache.commons.collections.OrderedMapIterator
Known Indirect Subclasses

Class Overview

Defines an iterator that operates over an ordered Map.

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

Summary

Public Methods
abstract boolean hasPrevious()
Checks to see if there is a previous entry that can be iterated to.
abstract Object previous()
Gets the previous key from the Map.
[Expand]
Inherited Methods
From interface java.util.Iterator
From interface org.apache.commons.collections.MapIterator
From interface org.apache.commons.collections.OrderedIterator

Public Methods

public abstract boolean hasPrevious ()

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

Returns
  • true if the iterator has a previous element

public abstract Object previous ()

Gets the previous key from the Map.

Returns
  • the previous key in the iteration
Throws
NoSuchElementException if the iteration is finished