- java.lang.Object
-
- org.arakhne.afc.math.tree.AbstractForest<D>
-
- org.arakhne.afc.math.tree.LinkedForest<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 LinkedForest<D> extends AbstractForest<D>
This is a linked-list 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 Constructor Description LinkedForest()
Construct a forest.LinkedForest(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
-
LinkedForest
public LinkedForest()
Construct a forest.
-
LinkedForest
public LinkedForest(Collection<? extends Tree<D,?>> trees)
Constructor.- Parameters:
trees
- is the trees to put inside the forest.
-
-