Class TreePrinterHelper

  • public class TreePrinterHelper
    extends Object
    A singleton helper class for printing tree structures using indentation.
    • Field Detail


        public static final int INDENTATION
        The number of characters to indent.
        See Also:
        Constant Field Values
    • Method Detail

      • generateNodePrefix

        public String generateNodePrefix​(int nIndentations)
        Returns a string containing the specified number of indentations, where each indentation contains INDENTATION blank characters.
        nIndentations - the number of indentations in the returned String.
        the String containing the specified number of indentations.