Package com.strobel.core
Class ReadOnlyList.ReadOnlyCollectionIterator<T>
java.lang.Object
com.strobel.core.ReadOnlyList.ReadOnlyCollectionIterator<T>
- All Implemented Interfaces:
Iterator<T>
,ListIterator<T>
- Enclosing class:
ReadOnlyList<T>
private static class ReadOnlyList.ReadOnlyCollectionIterator<T>
extends Object
implements ListIterator<T>
-
Field Details
-
_list
-
_position
private int _position
-
-
Constructor Details
-
ReadOnlyCollectionIterator
ReadOnlyCollectionIterator(ReadOnlyList<T> list) -
ReadOnlyCollectionIterator
ReadOnlyCollectionIterator(ReadOnlyList<T> list, int startPosition)
-
-
Method Details
-
hasNext
public final boolean hasNext() -
next
-
hasPrevious
public final boolean hasPrevious()- Specified by:
hasPrevious
in interfaceListIterator<T>
-
previous
- Specified by:
previous
in interfaceListIterator<T>
-
nextIndex
public final int nextIndex()- Specified by:
nextIndex
in interfaceListIterator<T>
-
previousIndex
public final int previousIndex()- Specified by:
previousIndex
in interfaceListIterator<T>
-
remove
public final void remove() -
set
- Specified by:
set
in interfaceListIterator<T>
-
add
- Specified by:
add
in interfaceListIterator<T>
-