org.omnaest.utils.structure.iterator
Interface CircularIterator<E>

Type Parameters:
E -
All Superinterfaces:
Iterator<E>
All Known Implementing Classes:
QueueToCircularIteratorAdapter

public interface CircularIterator<E>
extends Iterator<E>

A special Iterator which will go through the underlying structure and starts from the beginning if the last element has been passed. The only case the CircularIterator will return false for Iterator.hasNext() is the case the underlying structure is empty.

Author:
Omnaest

Method Summary
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 



Copyright © 2013. All Rights Reserved.