Class PrettyTree

java.lang.Object
org.opendaylight.yangtools.concepts.PrettyTree
All Implemented Interfaces:
Supplier<String>
Direct Known Subclasses:
NormalizedNodePrettyTree

public abstract class PrettyTree extends Object implements Supplier<String>
A capture of a tree-like construct, which can be formatted into a pretty-printed tree. The string can be acquired via get().

This concept is purposefully designed as an abstract class which defers its toString() to get(), as it allows convenient and light-weight use with logging:

   
     PrettyTreeAware treeLike;
     LOG.debug("Tree is {}", treeLike.prettyTree());