java.util.Iterator<FONode>, java.util.ListIterator<FONode>, FONode.FONodeIteratorpublic static class FObj.FObjIterator extends java.lang.Object implements FONode.FONodeIterator
FONode.FONodeIterator implementation| Modifier and Type | Method | 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. |
public FObj parent()
parent in interface FONode.FONodeIteratorpublic FONode next()
next in interface FONode.FONodeIteratornext in interface java.util.Iterator<FONode>next in interface java.util.ListIterator<FONode>public FONode previous()
previous in interface FONode.FONodeIteratorprevious in interface java.util.ListIterator<FONode>public void set(FONode newNode)
newNode.set in interface FONode.FONodeIteratorset in interface java.util.ListIterator<FONode>newNode - the new nodepublic void add(FONode newNode)
newNode at the current position.add in interface FONode.FONodeIteratoradd in interface java.util.ListIterator<FONode>newNode - the new nodepublic boolean hasNext()
hasNext in interface FONode.FONodeIteratorhasNext in interface java.util.Iterator<FONode>hasNext in interface java.util.ListIterator<FONode>true if there is a next node, false otherwisepublic boolean hasPrevious()
hasPrevious in interface FONode.FONodeIteratorhasPrevious in interface java.util.ListIterator<FONode>true if there is a previous node, false otherwisepublic int nextIndex()
nextIndex in interface FONode.FONodeIteratornextIndex in interface java.util.ListIterator<FONode>public int previousIndex()
previousIndex in interface FONode.FONodeIteratorpreviousIndex in interface java.util.ListIterator<FONode>public void remove()
remove in interface FONode.FONodeIteratorremove in interface java.util.Iterator<FONode>remove in interface java.util.ListIterator<FONode>public FONode last()
hasNext()
will return falselast in interface FONode.FONodeIteratorpublic FONode first()
hasPrevious() will
return falsefirst in interface FONode.FONodeIteratorCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.