public static class FObj.FObjIterator extends Object implements FONode.FONodeIterator
FONode.FONodeIterator
implementationModifier 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, wait
forEachRemaining
public FObj parent()
parent
in interface FONode.FONodeIterator
public FONode next()
next
in interface Iterator<FONode>
next
in interface ListIterator<FONode>
next
in interface FONode.FONodeIterator
public FONode previous()
previous
in interface ListIterator<FONode>
previous
in interface FONode.FONodeIterator
public void set(FONode newNode)
newNode
.set
in interface ListIterator<FONode>
set
in interface FONode.FONodeIterator
newNode
- the new nodepublic void add(FONode newNode)
newNode
at the current position.add
in interface ListIterator<FONode>
add
in interface FONode.FONodeIterator
newNode
- the new nodepublic boolean hasNext()
hasNext
in interface Iterator<FONode>
hasNext
in interface ListIterator<FONode>
hasNext
in interface FONode.FONodeIterator
true
if there is a next node, false
otherwisepublic boolean hasPrevious()
hasPrevious
in interface ListIterator<FONode>
hasPrevious
in interface FONode.FONodeIterator
true
if there is a previous node, false
otherwisepublic int nextIndex()
nextIndex
in interface ListIterator<FONode>
nextIndex
in interface FONode.FONodeIterator
public int previousIndex()
previousIndex
in interface ListIterator<FONode>
previousIndex
in interface FONode.FONodeIterator
public void remove()
remove
in interface Iterator<FONode>
remove
in interface ListIterator<FONode>
remove
in interface FONode.FONodeIterator
public FONode last()
hasNext()
will return false
last
in interface FONode.FONodeIterator
public FONode first()
hasPrevious()
will
return false
first
in interface FONode.FONodeIterator
Copyright © 2025 Apache Software Foundation. All rights reserved.