public final class DiscriminationTreeIterators extends Object
| Modifier and Type | Method and Description |
|---|---|
static <N extends AbstractDTNode<?,?,?,N>> |
innerNodeIterator(N root)
Iterator that traverses all inner nodes (no leaves) of a subtree of a given discrimination tree node.
|
static <N extends AbstractDTNode<?,?,?,N>> |
leafIterator(N root)
Iterator that traverses all leaves (no inner nodes) of a subtree of a given discrimination tree node.
|
static <N extends AbstractDTNode<?,?,?,N>> |
nodeIterator(N root)
Iterator that traverses all nodes of a subtree of a given discrimination tree node.
|
static <N extends AbstractDTNode<?,?,?,N>,D> |
transformingLeafIterator(N root,
Function<? super N,D> transformer)
Iterator that traverses all leaves (no inner nodes) of a subtree of a given discrimination tree node.
|
public static <N extends AbstractDTNode<?,?,?,N>> Iterator<N> nodeIterator(N root)
N - node typeroot - the root node, from which traversal should startpublic static <N extends AbstractDTNode<?,?,?,N>> Iterator<N> innerNodeIterator(N root)
N - node typeroot - the root node, from which traversal should startpublic static <N extends AbstractDTNode<?,?,?,N>> Iterator<N> leafIterator(N root)
N - node typeroot - the root node, from which traversal should startpublic static <N extends AbstractDTNode<?,?,?,N>,D> Iterator<D> transformingLeafIterator(N root, Function<? super N,D> transformer)
N - node typeroot - the root node, from which traversal should starttransformer - the transformer that transforms iterated nodesCopyright © 2019. All rights reserved.