public interface BidirectionalIterator<T>
extends java.util.Iterator<T>
The standard Java Iterator is uni-directional, allowing the user to explore
the contents of a collection in one way only. This interface defines a
bi-directional iterator, permiting the user to go forwards and backwards in a
collection.
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
Method Detail
hasPrev
boolean hasPrev()
Returns true if the iteration has elements preceeding the current one.
(In other words, returns true if prev would return an element
rather than throwing an exception.)