Class RowPrinter
- java.lang.Object
-
- org.dnsge.util.tableprinter.printer.RowPrinter
-
public class RowPrinter extends java.lang.ObjectClass with static methods to printTableRowobjects- Version:
- 2.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidprintRows(java.io.PrintStream stream, java.util.List<TableRow> rows)static voidprintRows(java.io.PrintStream stream, TableRow... rows)Prints aTableRow[]to aPrintStreamstatic voidprintRows(java.util.List<TableRow> rows)static voidprintRows(TableRow... rows)Prints aTableRow[]toSystem.outstatic java.util.List<java.lang.String>rowsToStringTable(java.util.List<TableRow> rows)static java.util.List<java.lang.String>rowsToStringTable(TableRow... rows)Creates aListof Strings of lines from someTableRows
-
-
-
Method Detail
-
rowsToStringTable
public static java.util.List<java.lang.String> rowsToStringTable(TableRow... rows)
Creates aListof Strings of lines from someTableRows- Parameters:
rows-TableRow[]of table rows to make the table from- Returns:
Listof Strings of lines- See Also:
TableRow
-
printRows
public static void printRows(TableRow... rows)
Prints aTableRow[]toSystem.out- Parameters:
rows-TableRow[]of table rows of one type to print
-
printRows
public static void printRows(java.io.PrintStream stream, TableRow... rows)Prints aTableRow[]to aPrintStream- Parameters:
stream-PrintStreamto print torows-TableRow[]of rows to print- See Also:
PrintStream
-
printRows
public static void printRows(java.util.List<TableRow> rows)
- Parameters:
rows-ListofTableRowsto print
-
printRows
public static void printRows(java.io.PrintStream stream, java.util.List<TableRow> rows)- Parameters:
stream-PrintStreamto print torows-ListofTableRowsto print
-
rowsToStringTable
public static java.util.List<java.lang.String> rowsToStringTable(java.util.List<TableRow> rows)
Creates aListof Strings of lines from aListofTableRows. This method is used by each printer method to create the string table.- Parameters:
rows-ListofTableRowsto use- Returns:
Listof Strings of lines
-
-