- Type Parameters:
N
- node type
D
- type of transformation result
- All Implemented Interfaces:
- Iterator<D>
public class TransformingLeavesIterator<N extends AbstractDTNode<?,?,?,N>,D>
extends AbstractIterator<D>
Iterator that traverses all leaves (no inner nodes) of a subtree of a given discrimination tree node. Additionally
allows to specify a transformer that is applied to the leaf nodes. If the transformer yields null
for an
iterated leaf, the transformed value will be skipped.
- Author:
- MalteIsberner, frohme