Package migratedb.v1.core.internal.util
Class AsciiTable
- java.lang.Object
-
- migratedb.v1.core.internal.util.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 rowsprintHeader- Whether to print the header row or not.nullText- The text to use for anullvalue.emptyText- The text to include in the table if it has no rows.
-
-
Method Detail
-
render
public void render(StringBuilder result)
-
-