Class AsciiTable


  • public class AsciiTable
    extends Object
    Prints a tabular data structure as ASCII text.
    • Constructor Detail

      • AsciiTable

        public AsciiTable​(List<String> columns,
                          List<List<String>> rows,
                          boolean printHeader,
                          String nullText,
                          String emptyText)
        Creates a new Ascii table.
        Parameters:
        columns - The column titles.
        rows - The data rows
        printHeader - Whether to print the header row or not.
        nullText - The text to use for a null value.
        emptyText - The text to include in the table if it has no rows.