|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.utils.iterators.CircularIterator<E> cz.cuni.amis.utils.iterators.ShiftedCircularIterator<E>
E
- public class ShiftedCircularIterator<E>
Circular iterator that can start from any given position in given iterable.
Even less tested then CircularIterator
or CircularListIterator
.
Field Summary |
---|
Fields inherited from class cz.cuni.amis.utils.iterators.CircularIterator |
---|
passedEnd |
Constructor Summary | |
---|---|
ShiftedCircularIterator(java.lang.Iterable<E> toIterateOver,
int steps)
|
Method Summary | |
---|---|
boolean |
hasNext()
|
boolean |
hasPassedEnd()
|
E |
next()
|
void |
remove()
|
Methods inherited from class cz.cuni.amis.utils.iterators.CircularIterator |
---|
getIterable, getIterator, restartIterator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShiftedCircularIterator(java.lang.Iterable<E> toIterateOver, int steps)
Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<E>
hasNext
in class CircularIterator<E>
public E next()
next
in interface java.util.Iterator<E>
next
in class CircularIterator<E>
public void remove()
remove
in interface java.util.Iterator<E>
remove
in class CircularIterator<E>
public boolean hasPassedEnd()
hasPassedEnd
in class CircularIterator<E>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |