Class DepthFirstForestIterator<D>
- java.lang.Object
-
- org.arakhne.afc.math.tree.iterator.DepthFirstForestIterator<D>
-
- Type Parameters:
D
- is the type of the data inside the forest
public class DepthFirstForestIterator<D> extends Object implements Iterator<TreeNode<D,?>>
This class is an iterator on a forest nodes.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:41
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathtree
-
-
Constructor Summary
Constructors Constructor Description DepthFirstForestIterator(DepthFirstNodeOrder order, Iterator<Tree<D,?>> iterator)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
TreeNode<D,?>
next()
void
remove()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
DepthFirstForestIterator
public DepthFirstForestIterator(DepthFirstNodeOrder order, Iterator<Tree<D,?>> iterator)
Constructor.- Parameters:
order
- is the treatement order for data.iterator
- is the trees to iterate on.
-
-