Class ObjectPrinter


  • public class ObjectPrinter
    extends java.lang.Object
    Class with static methods to print TableRowItem objects
    Version:
    2.0
    • Method Detail

      • objectsToStringTable

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

        public static java.util.List<java.lang.String> objectsToStringTable​(TableRowItem... items)
        Creates a List of Strings of lines from some TableRowItems
        Parameters:
        items - TableRowItem[] of table row items to make the table from
        Returns:
        List of Strings of lines
        See Also:
        TableRowItem
      • printObjects

        public static void printObjects​(java.io.PrintStream stream,
                                        TableRowItem... items)
        Prints a TableRowItems to a PrintStream
        Parameters:
        stream - PrintStream to print to
        items - Array of TableRowItems to print
      • printObjects

        public static void printObjects​(java.io.PrintStream stream,
                                        java.util.List<TableRowItem> items)
        Prints a List of TableRowItems to a PrintStream
        Parameters:
        stream - PrintStream to print to
        items - List of TableRowItems to print