Class ListingTreePrinter
- java.lang.Object
-
- hu.webarticum.treeprinter.printer.listing.ListingTreePrinter
-
- All Implemented Interfaces:
TreePrinter
public class ListingTreePrinter extends java.lang.Object implements TreePrinter
TreePrinterimplementation that draws nested lists with lines.Example output with the default settings:
Root ├─Child1 ├─Child2 │ ├─Grandchild1 │ └─Grandchild2 └─Child3 └─Grandchild3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListingTreePrinter.Builder
-
Constructor Summary
Constructors Constructor Description ListingTreePrinter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ListingTreePrinter.Builderbuilder()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
-
-
-
-
Method Detail
-
builder
public static ListingTreePrinter.Builder builder()
-
print
public void print(TreeNode rootNode, java.lang.Appendable out)
- Specified by:
printin interfaceTreePrinter
-
-