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 void
add(T o)
boolean
hasPrevious()
int
nextIndex()
T
previous()
int
previousIndex()
void
set(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:
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>
-
set
- Specified by:
set
in interfaceListIterator<T>
-
add
- Specified by:
add
in interfaceListIterator<T>
-