Class TreePrinter
java.lang.Object
org.ametys.cms.search.advanced.utils.TreePrinter
Helper to 
print a tree for debug purposes.- 
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Stringprint(AbstractTreeNode<T> tree) Prints the given tree
Use for debug purposes only.static <T> Stringprint(AbstractTreeNode<T> tree, Function<T, String> leafStringifier) Prints the given tree
Use for debug purposes only. 
- 
Method Details
- 
print
Prints the given tree
Use for debug purposes only.- Type Parameters:
 T- the type of the values of the leaves of the tree.- Parameters:
 tree- The tree to print- Returns:
 - The string representing the tree
 
 - 
print
Prints the given tree
Use for debug purposes only.- Type Parameters:
 T- the type of the values of the leaves of the tree.- Parameters:
 tree- The tree to printleafStringifier- The function to transform a leaf value to a readable String- Returns:
 - The string representing the tree
 
 
 -