.
Not fully tested!
- Author:
- Radek 'Black_Hand' Pibil
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
passedEnd
protected boolean passedEnd
passedBeginning
protected boolean passedBeginning
moved
protected boolean moved
CircularListIterator
public CircularListIterator(List<E> toIterateOver)
- Constructs an instance of an CircularListIterator.
- Parameters:
toIterateOver - List to be iterated over
CircularListIterator
public CircularListIterator(List<E> toIterateOver,
int index)
- Constructs an instance of an CircularListIterator.
- Parameters:
toIterateOver - List to be iterated overindex - an index to begin iteration at
CircularListIterator
public CircularListIterator(CircularListIterator<E> source)
- Copy constructor for CircularListIterator.
- Parameters:
source -
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface Iterator<E>- Specified by:
hasNext in interface ListIterator<E>
next
public E next()
- Specified by:
next in interface Iterator<E>- Specified by:
next in interface ListIterator<E>
remove
public void remove()
- Specified by:
remove in interface Iterator<E>- Specified by:
remove in interface ListIterator<E>
hasPassedEnd
public boolean hasPassedEnd()
hasPassedBeginning
public boolean hasPassedBeginning()
getIterable
protected Iterable<E> getIterable()
getIterator
protected Iterator<E> getIterator()
restartIteratorBeginning
protected void restartIteratorBeginning()
restartIteratorEnd
protected void restartIteratorEnd()
add
public void add(E e)
- Specified by:
add in interface ListIterator<E>
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious in interface ListIterator<E>
nextIndex
public int nextIndex()
- Specified by:
nextIndex in interface ListIterator<E>
previous
public E previous()
- Specified by:
previous in interface ListIterator<E>
previousIndex
public int previousIndex()
- Specified by:
previousIndex in interface ListIterator<E>
set
public void set(E e)
- Specified by:
set in interface ListIterator<E>
currentIndex
public int currentIndex()
previousIter
public CircularListIterator<E> previousIter()
nextIter
public CircularListIterator<E> nextIter()
Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.