protected class ObservableList.ObservableListIterator extends CursorListIterator<E>
CursorListIterator
that delegates callback methods to the
defining ObservableList
instance for the retrieval, addition, and
removal of elements.target
Modifier | Constructor and Description |
---|---|
protected |
ObservableListIterator(ListIterator<? extends E> iterator)
Creates a new
CursorListIterator for the specified
ListIterator . |
Modifier and Type | Method and Description |
---|---|
void |
add(E e) |
boolean |
hasNext() |
boolean |
hasPrevious() |
E |
next() |
int |
nextIndex() |
E |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(E e) |
assertModifiable, indexForNext, indexOfLast
equals, forEachRemaining, hashCode, superForEachRemaining, toString
protected ObservableListIterator(ListIterator<? extends E> iterator)
CursorListIterator
for the specified
ListIterator
.iterator
- The ListIterator
.NullPointerException
- If the specified ListIterator
is
null.public boolean hasNext()
hasNext
in interface Iterator<E>
hasNext
in interface ListIterator<E>
hasNext
in class DelegateListIterator<E>
public E next()
next
in interface Iterator<E>
next
in interface ListIterator<E>
next
in class CursorListIterator<E>
public boolean hasPrevious()
hasPrevious
in interface ListIterator<E>
hasPrevious
in class DelegateListIterator<E>
public E previous()
previous
in interface ListIterator<E>
previous
in class CursorListIterator<E>
public int nextIndex()
nextIndex
in interface ListIterator<E>
nextIndex
in class DelegateListIterator<E>
public int previousIndex()
previousIndex
in interface ListIterator<E>
previousIndex
in class DelegateListIterator<E>
public void remove()
remove
in interface Iterator<E>
remove
in interface ListIterator<E>
remove
in class CursorListIterator<E>
public void set(E e)
set
in interface ListIterator<E>
set
in class CursorListIterator<E>
public void add(E e)
add
in interface ListIterator<E>
add
in class CursorListIterator<E>
Copyright © 2020 LibJ. All rights reserved.