类 TreePrinterHelper


  • public class TreePrinterHelper
    extends Object
    A singleton helper class for printing tree structures using indentation.
    作者:
    Steve Ebersole
    • 字段详细资料

      • INDENTATION

        public static final int INDENTATION
        The number of characters to indent.
        另请参阅:
        常量字段值
    • 方法详细资料

      • 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.