Class GenericPrettyPrinter<T>


  • public class GenericPrettyPrinter<T>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      GenericPrettyPrinter​(java.util.function.Predicate<T> isLeaf, java.util.function.Function<T,​java.lang.String> nodePrinter, java.util.function.Function<T,​java.util.stream.Stream<T>> leafRetriever)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String prettyPrint​(T root)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GenericPrettyPrinter

        @ConstructorProperties({"isLeaf","nodePrinter","leafRetriever"})
        public GenericPrettyPrinter​(java.util.function.Predicate<T> isLeaf,
                                    java.util.function.Function<T,​java.lang.String> nodePrinter,
                                    java.util.function.Function<T,​java.util.stream.Stream<T>> leafRetriever)
    • Method Detail

      • prettyPrint

        public java.lang.String prettyPrint​(T root)