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
-
next
-
hasPrevious
public final boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator<T>
-
previous
- Specified by:
previousin interfaceListIterator<T>
-
nextIndex
public final int nextIndex()- Specified by:
nextIndexin interfaceListIterator<T>
-
previousIndex
public final int previousIndex()- Specified by:
previousIndexin interfaceListIterator<T>
-
remove
-
set
- Specified by:
setin interfaceListIterator<T>
-
add
- Specified by:
addin interfaceListIterator<T>
-