public static interface FONode.FONodeIterator extends ListIterator<FONode>
| Modifier and Type | Method and Description |
|---|---|
void |
add(FONode newNode)
Add the given
newNode at the current position. |
FONode |
first()
Returns the first node in the list, and decreases the index,
so that a subsequent call to
hasPrevious() will
return false |
boolean |
hasNext() |
boolean |
hasPrevious() |
FONode |
last()
Returns the last node in the list, and advances the
current position, so that a subsequent call to
hasNext()
will return false |
FONode |
next() |
int |
nextIndex() |
FObj |
parent()
Returns the parent node for this iterator's list
of child nodes
|
FONode |
previous() |
int |
previousIndex() |
void |
remove()
Removes the node at the current position.
|
void |
set(FONode newNode)
Replace the node at the current index with the given
newNode. |
forEachRemainingFONode next()
FONode previous()
previous in interface ListIterator<FONode>void set(FONode newNode)
newNode.set in interface ListIterator<FONode>newNode - the new nodevoid add(FONode newNode)
newNode at the current position.add in interface ListIterator<FONode>newNode - the new nodeboolean hasNext()
boolean hasPrevious()
hasPrevious in interface ListIterator<FONode>true if there is a previous node, false otherwiseint nextIndex()
nextIndex in interface ListIterator<FONode>int previousIndex()
previousIndex in interface ListIterator<FONode>void remove()
FObj parent()
FONode first()
hasPrevious() will
return falseFONode last()
hasNext()
will return falseCopyright © 2023 Apache Software Foundation. All rights reserved.