Class ImmutableListIterator<T>
java.lang.Object
org.eclipse.collections.impl.list.immutable.ImmutableIterator<T>
org.eclipse.collections.impl.list.immutable.ImmutableListIterator<T>
- All Implemented Interfaces:
Iterator<T>,ListIterator<T>
public final class ImmutableListIterator<T> extends ImmutableIterator<T> implements ListIterator<T>
-
Constructor Summary
Constructors Constructor Description ImmutableListIterator(List<T> list, int index) -
Method Summary
Modifier and Type Method Description voidadd(T o)booleanhasPrevious()intnextIndex()Tprevious()intpreviousIndex()voidset(T o)Methods inherited from class org.eclipse.collections.impl.list.immutable.ImmutableIterator
hasNext, next, remove
-
Constructor Details
-
Method Details
-
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>
-
set
- Specified by:
setin interfaceListIterator<T>
-
add
- Specified by:
addin interfaceListIterator<T>
-