Class MappingTreePrinter
- java.lang.Object
-
- hu.webarticum.treeprinter.printer.MappingTreePrinter
-
- All Implemented Interfaces:
TreePrinter
public class MappingTreePrinter extends java.lang.Object implements TreePrinter
Helper implementation ofTreePrinterthat automatically applies a mapping
-
-
Constructor Summary
Constructors Constructor Description MappingTreePrinter(TreePrinter baseTreePrinter, java.util.function.UnaryOperator<TreeNode> mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprint(TreeNode rootNode, java.lang.Appendable out)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hu.webarticum.treeprinter.printer.TreePrinter
print, stringify
-
-
-
-
Constructor Detail
-
MappingTreePrinter
public MappingTreePrinter(TreePrinter baseTreePrinter, java.util.function.UnaryOperator<TreeNode> mapper)
-
-
Method Detail
-
print
public void print(TreeNode rootNode, java.lang.Appendable out)
- Specified by:
printin interfaceTreePrinter
-
-