Class Difference.ReadOnlyListIterator<T>
java.lang.Object
com.github.javaparser.printer.lexicalpreservation.Difference.ReadOnlyListIterator<T>
- All Implemented Interfaces:
Iterator<T>,ListIterator<T>
- Enclosing class:
- Difference
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReadOnlyListIterator(List<T> elements) ReadOnlyListIterator(List<T> elements, int index) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
elements
ListIterator<T> elements
-
-
Constructor Details
-
ReadOnlyListIterator
-
ReadOnlyListIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator<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
- Specified by:
setin interfaceListIterator<T>
-
add
- Specified by:
addin interfaceListIterator<T>
-