Class Difference.ArrayIterator<T>
- java.lang.Object
-
- com.github.javaparser.printer.lexicalpreservation.Difference.ArrayIterator<T>
-
- All Implemented Interfaces:
java.util.Iterator<T>,java.util.ListIterator<T>
- Enclosing class:
- Difference
public static class Difference.ArrayIterator<T> extends java.lang.Object implements java.util.ListIterator<T>
-
-
Constructor Summary
Constructors Constructor Description ArrayIterator(java.util.List<T> elements)ArrayIterator(java.util.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)
-
-
-
Field Detail
-
iterator
java.util.ListIterator<T> iterator
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public T next()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPreviousin interfacejava.util.ListIterator<T>
-
nextIndex
public int nextIndex()
- Specified by:
nextIndexin interfacejava.util.ListIterator<T>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndexin interfacejava.util.ListIterator<T>
-
index
public int index()
-
remove
public void remove()
-
-