Interface TreePrinter

  • All Known Implementing Classes:
    BoxingTreePrinter, ListingTreePrinter, MappingTreePrinter, TraditionalTreePrinter
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface TreePrinter
    Main interface for tree printers. A tree printer visualize a TreeNode and its entire subtree structure. Any implementation can have its own way to do this. Some implementations (e. g. ListingTreePrinter) can print large data in a memory efficient way via print(TreeNode) or print(TreeNode, Appendable).
    • Method Detail

      • print

        void print​(TreeNode rootNode,
                   java.lang.Appendable out)
      • print

        default void print​(TreeNode rootNode)
      • stringify

        default java.lang.String stringify​(TreeNode rootNode)