Constructor and Description |
---|
AbstractTree(S root,
TreeClassifier<T> treeClassifier,
TreeGroupFactory<T,S> groupFactory,
TreeLeafFactory<T,S,U> leafFactory) |
Modifier and Type | Method and Description |
---|---|
void |
add(T item) |
void |
addChild(TreeNode node) |
java.util.Set<TreeNode> |
getChildren() |
protected java.util.stream.Stream<S> |
getEndNodes(T item,
S node,
java.util.List<TreeLayer> classifiers,
int index) |
java.lang.String |
getName() |
protected abstract java.lang.Class<S> |
getRootType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findNodeOfType
public AbstractTree(S root, TreeClassifier<T> treeClassifier, TreeGroupFactory<T,S> groupFactory, TreeLeafFactory<T,S,U> leafFactory)
protected java.util.stream.Stream<S> getEndNodes(T item, S node, java.util.List<TreeLayer> classifiers, int index)
public java.util.Set<TreeNode> getChildren()
getChildren
in interface TreeGroup
protected abstract java.lang.Class<S> getRootType()