org.jtiger.framework
Interface SequenceIterator<E>

All Superinterfaces:
Iterator<E>, Positionable

public interface SequenceIterator<E>
extends Positionable, Iterator<E>

An iterator of a Sequence that permits bidirectional traversal.

Version:
2.1
Build Number 0376
Build Time 2006-07-28 01:50.16.218
Author:
Tony Morris
See Also:
Sequence

Method Summary
 boolean hasPrevious()
          Returns true if this iterator has a previous element that can be retrieved, false otherwise.
 E previous()
          Returns the previous element from this iterator.
 
Methods inherited from interface org.jtiger.framework.Positionable
getPosition
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

hasPrevious

boolean hasPrevious()
Returns true if this iterator has a previous element that can be retrieved, false otherwise.

Returns:
true if this iterator has a previous element that can be retrieved, false otherwise.

previous

E previous()
           throws NoSuchElementException
Returns the previous element from this iterator.

Returns:
The previous element from this iterator.
Throws:
NoSuchElementException - If there is no previous element in this iterator. It is guaranteed that if hasPrevious() has returned true, then this exception will not be thrown. Conversely, if hasPrevious() has returned false, then this exception will certainly be thrown.