- java.lang.Object
-
- org.arakhne.afc.math.tree.AbstractForest<D>
-
- org.arakhne.afc.math.tree.ArrayForest<D>
-
- Type Parameters:
D
- is the type of the data inside the forest
- All Implemented Interfaces:
Iterable<Tree<D,?>>
,Collection<Tree<D,?>>
,Forest<D>
public class ArrayForest<D> extends AbstractForest<D>
This is a array implementation of a forest of trees.- 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
-
-
Field Summary
-
Fields inherited from class org.arakhne.afc.math.tree.AbstractForest
USE_LINKED_LIST
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ArrayForest()
Construct a forest.protected
ArrayForest(Collection<? extends Tree<D,?>> trees)
Constructor.
-
Method Summary
-
Methods inherited from class org.arakhne.afc.math.tree.AbstractForest
add, addAll, addForestListener, broadFirstIterator, clear, contains, containsAll, dataBroadFirstIterator, dataDepthFirstIterator, dataDepthFirstIterator, dataDepthFirstIterator, depthFirstIterator, depthFirstIterator, fireTreeAddition, fireTreeRemoval, getHeights, getMaxHeight, getMinHeight, isEmpty, iterator, remove, removeAll, removeForestListener, retainAll, size, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Constructor Detail
-
ArrayForest
protected ArrayForest()
Construct a forest.
-
ArrayForest
protected ArrayForest(Collection<? extends Tree<D,?>> trees)
Constructor.- Parameters:
trees
- is the trees to put inside the forest.
-
-