FObj.FObjIterator
public static interface FONode.FONodeIterator extends java.util.ListIterator<FONode>
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 . |
FONode next()
FONode previous()
previous
in interface java.util.ListIterator<FONode>
void set(FONode newNode)
newNode
.set
in interface java.util.ListIterator<FONode>
newNode
- the new nodevoid add(FONode newNode)
newNode
at the current position.add
in interface java.util.ListIterator<FONode>
newNode
- the new nodeboolean hasNext()
boolean hasPrevious()
hasPrevious
in interface java.util.ListIterator<FONode>
true
if there is a previous node, false
otherwiseint nextIndex()
nextIndex
in interface java.util.ListIterator<FONode>
int previousIndex()
previousIndex
in interface java.util.ListIterator<FONode>
void remove()
FObj parent()
FONode first()
hasPrevious()
will
return false
FONode last()
hasNext()
will return false
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.