Class TreePrinterHelper


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

      • INDENTATION

        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.
        Parameters:
        nIndentations - the number of indentations in the returned String.
        Returns:
        the String containing the specified number of indentations.