Class IList.ListIter
java.lang.Object
org.magicwerk.brownies.collections.IList.ListIter
- All Implemented Interfaces:
Iterator<E>
,ListIterator<E>
Iterator supports forward and reverse iteration.
-
Field Details
-
index
int indexcurrent index -
remove
int removeindex where element will be removed if remove() is called
-
-
Constructor Details
-
ListIter
public ListIter(int index) Constructor.- Parameters:
index
- start index
-
-
Method Details
-
hasNext
public boolean hasNext() -
hasPrevious
public boolean hasPrevious()- Specified by:
hasPrevious
in interfaceListIterator<E>
-
next
-
nextIndex
public int nextIndex()- Specified by:
nextIndex
in interfaceListIterator<E>
-
previous
- Specified by:
previous
in interfaceListIterator<E>
-
previousIndex
public int previousIndex()- Specified by:
previousIndex
in interfaceListIterator<E>
-
remove
public void remove() -
set
- Specified by:
set
in interfaceListIterator<E>
-
add
- Specified by:
add
in interfaceListIterator<E>
-