public static class FObj.FObjIterator extends Object implements FONode.FONodeIterator
FONode.FONodeIterator implementation| 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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic FObj parent()
parent in interface FONode.FONodeIteratorpublic FONode next()
next in interface Iterator<FONode>next in interface ListIterator<FONode>next in interface FONode.FONodeIteratorpublic FONode previous()
previous in interface ListIterator<FONode>previous in interface FONode.FONodeIteratorpublic void set(FONode newNode)
newNode.set in interface ListIterator<FONode>set in interface FONode.FONodeIteratornewNode - the new nodepublic void add(FONode newNode)
newNode at the current position.add in interface ListIterator<FONode>add in interface FONode.FONodeIteratornewNode - the new nodepublic boolean hasNext()
hasNext in interface Iterator<FONode>hasNext in interface ListIterator<FONode>hasNext in interface FONode.FONodeIteratortrue if there is a next node, false otherwisepublic boolean hasPrevious()
hasPrevious in interface ListIterator<FONode>hasPrevious in interface FONode.FONodeIteratortrue if there is a previous node, false otherwisepublic int nextIndex()
nextIndex in interface ListIterator<FONode>nextIndex in interface FONode.FONodeIteratorpublic int previousIndex()
previousIndex in interface ListIterator<FONode>previousIndex in interface FONode.FONodeIteratorpublic void remove()
remove in interface Iterator<FONode>remove in interface ListIterator<FONode>remove in interface FONode.FONodeIteratorpublic FONode last()
hasNext()
will return falselast in interface FONode.FONodeIteratorpublic FONode first()
hasPrevious() will
return falsefirst in interface FONode.FONodeIteratorCopyright © 2025 Apache Software Foundation. All rights reserved.