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, wait
Methods 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:
hasPrevious
in interfaceListIterator<T>
-
previous
- Specified by:
previous
in interfaceListIterator<T>
-
nextIndex
public int nextIndex()- Specified by:
nextIndex
in interfaceListIterator<T>
-
previousIndex
public int previousIndex()- Specified by:
previousIndex
in interfaceListIterator<T>
-
index
public int index() -
remove
public void remove() -
set
- Specified by:
set
in interfaceListIterator<T>
-
add
- Specified by:
add
in interfaceListIterator<T>
-