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>_listprivate 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 voidadd(T T)booleanhasNext()booleanhasPrevious()Tnext()intnextIndex()Tprevious()intpreviousIndex()voidremove()voidset(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:
hasPreviousin interfacejava.util.ListIterator<T>
-
nextIndex
public final int nextIndex()
- Specified by:
nextIndexin interfacejava.util.ListIterator<T>
-
previousIndex
public final int previousIndex()
- Specified by:
previousIndexin interfacejava.util.ListIterator<T>
-
remove
public final void remove()
-
-