Package com.strobel.core
Class ReadOnlyList.ReadOnlyCollectionIterator<T>
- java.lang.Object
-
- com.strobel.core.ReadOnlyList.ReadOnlyCollectionIterator<T>
-
- All Implemented Interfaces:
java.util.Iterator<T>
,java.util.ListIterator<T>
- Enclosing class:
- ReadOnlyList<T>
private static class ReadOnlyList.ReadOnlyCollectionIterator<T> extends java.lang.Object implements java.util.ListIterator<T>
-
-
Field Summary
Fields Modifier and Type Field Description private ReadOnlyList<T>
_list
private int
_position
-
Constructor Summary
Constructors Constructor Description ReadOnlyCollectionIterator(ReadOnlyList<T> list)
ReadOnlyCollectionIterator(ReadOnlyList<T> list, int startPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T T)
boolean
hasNext()
boolean
hasPrevious()
T
next()
int
nextIndex()
T
previous()
int
previousIndex()
void
remove()
void
set(T T)
-
-
-
Field Detail
-
_list
private final ReadOnlyList<T> _list
-
_position
private int _position
-
-
Constructor Detail
-
ReadOnlyCollectionIterator
ReadOnlyCollectionIterator(ReadOnlyList<T> list)
-
ReadOnlyCollectionIterator
ReadOnlyCollectionIterator(ReadOnlyList<T> list, int startPosition)
-
-
Method Detail
-
hasNext
public final boolean hasNext()
-
next
public final T next()
-
hasPrevious
public final boolean hasPrevious()
- Specified by:
hasPrevious
in interfacejava.util.ListIterator<T>
-
nextIndex
public final int nextIndex()
- Specified by:
nextIndex
in interfacejava.util.ListIterator<T>
-
previousIndex
public final int previousIndex()
- Specified by:
previousIndex
in interfacejava.util.ListIterator<T>
-
remove
public final void remove()
-
-