|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.databene.commons.iterator.IteratorProxy<E>
org.databene.commons.iterator.CyclicIterator<E>
public class CyclicIterator<E>
Iterates through another BidirectionalIterator repeatedly.
This is supported forward as well as backward.
Created: 12.05.2007 23:21:48
| Constructor Summary | |
|---|---|
CyclicIterator(BidirectionalIterator<E> realIterator)
|
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
boolean |
hasPrevious()
|
boolean |
isCyclic()
|
E |
next()
|
E |
previous()
|
void |
setCyclic(boolean cyclic)
|
| Methods inherited from class org.databene.commons.iterator.IteratorProxy |
|---|
first, last, remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CyclicIterator(BidirectionalIterator<E> realIterator)
| Method Detail |
|---|
public boolean isCyclic()
public void setCyclic(boolean cyclic)
public boolean hasPrevious()
hasPrevious in interface BidirectionalIterator<E>hasPrevious in class IteratorProxy<E>public boolean hasNext()
hasNext in interface java.util.Iterator<E>hasNext in class IteratorProxy<E>public E previous()
previous in interface BidirectionalIterator<E>previous in class IteratorProxy<E>public E next()
next in interface java.util.Iterator<E>next in class IteratorProxy<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||