Class RowPrinter


  • public class RowPrinter
    extends java.lang.Object
    Class with static methods to print TableRow objects
    Version:
    2.0
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void printRows​(java.io.PrintStream stream, java.util.List<TableRow> rows)
      Prints a List of TableRows to a PrintStream
      static void printRows​(java.io.PrintStream stream, TableRow... rows)
      Prints a TableRow[] to a PrintStream
      static void printRows​(java.util.List<TableRow> rows)
      Prints a List of TableRows to System.out
      static void printRows​(TableRow... rows)
      Prints a TableRow[] to System.out
      static java.util.List<java.lang.String> rowsToStringTable​(java.util.List<TableRow> rows)
      Creates a List of Strings of lines from a List of TableRows.
      static java.util.List<java.lang.String> rowsToStringTable​(TableRow... rows)
      Creates a List of Strings of lines from some TableRows
      • Methods inherited from class java.lang.Object

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

      • rowsToStringTable

        public static java.util.List<java.lang.String> rowsToStringTable​(TableRow... rows)
        Creates a List of Strings of lines from some TableRows
        Parameters:
        rows - TableRow[] of table rows to make the table from
        Returns:
        List of Strings of lines
        See Also:
        TableRow
      • printRows

        public static void printRows​(TableRow... rows)
        Prints a TableRow[] to System.out
        Parameters:
        rows - TableRow[] of table rows of one type to print
      • printRows

        public static void printRows​(java.io.PrintStream stream,
                                     TableRow... rows)
        Prints a TableRow[] to a PrintStream
        Parameters:
        stream - PrintStream to print to
        rows - TableRow[] of rows to print
        See Also:
        PrintStream
      • printRows

        public static void printRows​(java.util.List<TableRow> rows)
        Prints a List of TableRows to System.out
        Parameters:
        rows - List of TableRows to print
      • printRows

        public static void printRows​(java.io.PrintStream stream,
                                     java.util.List<TableRow> rows)
        Prints a List of TableRows to a PrintStream
        Parameters:
        stream - PrintStream to print to
        rows - List of TableRows to print
      • rowsToStringTable

        public static java.util.List<java.lang.String> rowsToStringTable​(java.util.List<TableRow> rows)
        Creates a List of Strings of lines from a List of TableRows. This method is used by each printer method to create the string table.
        Parameters:
        rows - List of TableRows to use
        Returns:
        List of Strings of lines