public class Table
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Table.Alignment
Describes an alignment in a column
|
static class |
Table.ColumnName
Contains the name & alignment of the column
|
Constructor and Description |
---|
Table(Table.Alignment alignment,
java.lang.String... columns)
Creates a table with the specified column names, all with the same alignment
|
Table(Table.ColumnName... columnNames)
Creates a table
|
Modifier and Type | Method and Description |
---|---|
void |
addRow(java.lang.String... cols)
Adds the row to the list
|
java.lang.String |
format()
Gets the reddit format of the table
|
public Table(Table.ColumnName... columnNames)
columnNames
- the names of each columnpublic Table(Table.Alignment alignment, java.lang.String... columns)
alignment
- the alignmentcolumns
- the columns