Class TreePrinterHelper


  • public class TreePrinterHelper
    extends java.lang.Object
    A singleton helper class for printing tree structures using indentation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String generateNodePrefix​(int nIndentations)
      Returns a string containing the specified number of indentations, where each indentation contains INDENTATION blank characters.
      • Methods inherited from class java.lang.Object

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

      • INDENTATION

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

      • generateNodePrefix

        public java.lang.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.