java.util.Iterator<FONode>
, java.util.ListIterator<FONode>
, FONode.FONodeIterator
public static class FObj.FObjIterator extends java.lang.Object implements FONode.FONodeIterator
FONode.FONodeIterator
implementationModifier 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.FONodeIterator
public FONode next()
next
in interface FONode.FONodeIterator
next
in interface java.util.Iterator<FONode>
next
in interface java.util.ListIterator<FONode>
public FONode previous()
previous
in interface FONode.FONodeIterator
previous
in interface java.util.ListIterator<FONode>
public void set(FONode newNode)
newNode
.set
in interface FONode.FONodeIterator
set
in interface java.util.ListIterator<FONode>
newNode
- the new nodepublic void add(FONode newNode)
newNode
at the current position.add
in interface FONode.FONodeIterator
add
in interface java.util.ListIterator<FONode>
newNode
- the new nodepublic boolean hasNext()
hasNext
in interface FONode.FONodeIterator
hasNext
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.FONodeIterator
hasPrevious
in interface java.util.ListIterator<FONode>
true
if there is a previous node, false
otherwisepublic int nextIndex()
nextIndex
in interface FONode.FONodeIterator
nextIndex
in interface java.util.ListIterator<FONode>
public int previousIndex()
previousIndex
in interface FONode.FONodeIterator
previousIndex
in interface java.util.ListIterator<FONode>
public void remove()
remove
in interface FONode.FONodeIterator
remove
in interface java.util.Iterator<FONode>
remove
in interface java.util.ListIterator<FONode>
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 1999-2016 The Apache Software Foundation. All Rights Reserved.