Class Difference.ArrayIterator<T>
- java.lang.Object
-
- com.github.javaparser.printer.lexicalpreservation.Difference.ArrayIterator<T>
-
- All Implemented Interfaces:
Iterator<T>,ListIterator<T>
- Enclosing class:
- Difference
public static class Difference.ArrayIterator<T> extends Object implements ListIterator<T>
-
-
Constructor Summary
Constructors Constructor Description ArrayIterator(List<T> elements)ArrayIterator(List<T> elements, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(T e)booleanhasNext()booleanhasPrevious()intindex()Tnext()intnextIndex()Tprevious()intpreviousIndex()voidremove()voidset(T e)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public T next()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPreviousin interfaceListIterator<T>
-
previous
public T previous()
- Specified by:
previousin interfaceListIterator<T>
-
nextIndex
public int nextIndex()
- Specified by:
nextIndexin interfaceListIterator<T>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndexin interfaceListIterator<T>
-
index
public int index()
-
remove
public void remove()
-
set
public void set(T e)
- Specified by:
setin interfaceListIterator<T>
-
add
public void add(T e)
- Specified by:
addin interfaceListIterator<T>
-
-