Package groovy.util
Class ObservableList.ObservableListIterator
java.lang.Object
groovy.util.ObservableList.ObservableIterator
groovy.util.ObservableList.ObservableListIterator
- All Implemented Interfaces:
Iterator,ListIterator
- Enclosing class:
- ObservableList
protected class ObservableList.ObservableListIterator
extends ObservableList.ObservableIterator
implements ListIterator
List iterator wrapper that routes mutations through
ObservableList.-
Field Summary
Fields inherited from class groovy.util.ObservableList.ObservableIterator
cursor -
Constructor Summary
ConstructorsConstructorDescriptionObservableListIterator(ListIterator iterDelegate, int index) Creates an observable list iterator. -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns the wrapped list iterator.booleanintprevious()intvoidMethods inherited from class groovy.util.ObservableList.ObservableIterator
getDelegate, hasNext, next, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemainingMethods inherited from interface java.util.ListIterator
hasNext, next, remove
-
Constructor Details
-
ObservableListIterator
Creates an observable list iterator.- Parameters:
iterDelegate- the backing list iteratorindex- the starting index
-
-
Method Details
-
getListIterator
Returns the wrapped list iterator.- Returns:
- the backing list iterator
-
add
- Specified by:
addin interfaceListIterator
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator
-
previous
- Specified by:
previousin interfaceListIterator
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator
-
set
- Specified by:
setin interfaceListIterator
-