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 . |
forEachRemaining
FONode 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 false
FONode last()
hasNext()
will return false
Copyright © 2025 Apache Software Foundation. All rights reserved.