public class ConsoleTable extends Object
ConsoleTable class.
| Modifier and Type | Field and Description |
|---|---|
List<List<String>> |
content |
List<String> |
header |
static String |
SEPARATOR_LINE
Constant
SEPARATOR_LINE="---" |
| Constructor and Description |
|---|
ConsoleTable() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
addRow()
addRow.
|
void |
addRowValues(Object... values)
addRowValues.
|
List<String> |
getHeader()
Getter for the field
header. |
int |
getMaxColSize()
Getter for the field
maxColSize. |
boolean |
isLineSpacer()
isLineSpacer.
|
void |
print(Console console)
print.
|
void |
print(PrintStream out)
print.
|
void |
setHeaderValues(String... values)
setHeaderValues.
|
void |
setLineSpacer(boolean lineSpacer)
Setter for the field
lineSpacer. |
void |
setMaxColSize(int maxColSize)
Setter for the field
maxColSize. |
public static final String SEPARATOR_LINE
SEPARATOR_LINE="---"public void addRowValues(Object... values)
addRowValues.
values - a Object object.public void setHeaderValues(String... values)
setHeaderValues.
values - a String object.public void print(PrintStream out)
print.
out - a PrintStream object.public int getMaxColSize()
Getter for the field maxColSize.
public void setMaxColSize(int maxColSize)
Setter for the field maxColSize.
maxColSize - a int.public boolean isLineSpacer()
isLineSpacer.
public void setLineSpacer(boolean lineSpacer)
Setter for the field lineSpacer.
lineSpacer - a boolean.Copyright © 2016. All Rights Reserved.