com.klg.jclass.datasource
Class ForwardTreeIterator
java.lang.Object
|
+--com.klg.jclass.datasource.TreeIterator
|
+--com.klg.jclass.datasource.ForwardTreeIterator
- All Implemented Interfaces:
- Serializable, TreeIteratorModel
- public class ForwardTreeIterator
- extends TreeIterator
Iterates over the siblings of a tree in the Forward direction;
extends TreeIterator.
- See Also:
- Serialized Form
Constructor Summary |
ForwardTreeIterator(com.klg.jclass.datasource.DataSourceTreeNode startNode)
|
Method Summary |
void |
advance()
Move to the next element in this iterator's list. |
boolean |
atEnd()
Returns boolean: true if iterator is positioned at the end of list,
false otherwise. |
Object |
clone()
Return a copy of the current node.* |
ForwardTreeIterator
public ForwardTreeIterator(com.klg.jclass.datasource.DataSourceTreeNode startNode)
atEnd
public boolean atEnd()
- Description copied from interface:
TreeIteratorModel
- Returns boolean: true if iterator is positioned at the end of list,
false otherwise.
- Specified by:
atEnd
in interface TreeIteratorModel
- Overrides:
atEnd
in class TreeIterator
- Returns:
- boolean: true if positioned at end of list, false otherwise
advance
public void advance()
- Description copied from interface:
TreeIteratorModel
- Move to the next element in this iterator's list.
- Specified by:
advance
in interface TreeIteratorModel
- Overrides:
advance
in class TreeIterator
clone
public Object clone()
- Description copied from interface:
TreeIteratorModel
- Return a copy of the current node.*
- Specified by:
clone
in interface TreeIteratorModel
- Overrides:
clone
in class TreeIterator
- Returns:
- an Object which is a copy of the current node