Package org.arakhne.afc.math.tree
Interface BroadFirstIterableTree<D,N extends TreeNode<D,?>>
-
- Type Parameters:
D
- is the type of the data inside the treeN
- is the type of the tree nodes.
- All Known Implementing Classes:
AbstractTree
,LinkedTree
public interface BroadFirstIterableTree<D,N extends TreeNode<D,?>> extends Tree<D,N>
This is the generic implementation of a tree service that permits to iterate with a broad-first approach.This is the public interface for a tree which is independent of the tree implementation.
- 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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterator<N>
broadFirstIterator()
Replies a broad first iterator on nodes.Iterator<D>
dataBroadFirstIterator()
Replies the broad-first iterator on the tree.Iterable<N>
toBroadFirstIterable()
Replies the broad-first iterator on the tree.Iterable<D>
toDataBroadFirstIterable()
Replies the broad-first iterator on the tree.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface org.arakhne.afc.math.tree.Tree
clear, dataDepthFirstIterator, dataDepthFirstIterator, dataDepthFirstIterator, depthFirstIterator, depthFirstIterator, getHeights, getMaxHeight, getMinHeight, getNodeCount, getRoot, getUserDataCount, isEmpty, setRoot
-
-
-
-
Method Detail
-
broadFirstIterator
@Pure Iterator<N> broadFirstIterator()
Description copied from interface:Tree
Replies a broad first iterator on nodes.
-
dataBroadFirstIterator
@Pure Iterator<D> dataBroadFirstIterator()
Description copied from interface:Tree
Replies the broad-first iterator on the tree.
-
toBroadFirstIterable
@Pure Iterable<N> toBroadFirstIterable()
Replies the broad-first iterator on the tree.- Returns:
- the iterator on nodes.
-
-