| Modifier and Type | Method and Description |
|---|---|
static ColumnFormatter<Number> |
ColumnFormatter.currency(Alignment al,
int width,
Precision p,
String symbol)
Get a built-in ColumnFormatter for currency values.
|
static ColumnFormatter<Date> |
ColumnFormatter.dateTime(Alignment al,
int width,
DateFormat df)
Get a built-in ColumnFormatter for date and time
|
static ColumnFormatter<Number> |
ColumnFormatter.number(Alignment al,
int width,
Precision p)
Get a built-in ColumnFormatter for plain numbers
|
static ColumnFormatter<Number> |
ColumnFormatter.percentage(Alignment al,
int width,
Precision p)
Get a built-in ColumnFormatter for percentage values
|
static ColumnFormatter<String> |
ColumnFormatter.text(Alignment al,
int width)
Get a built-in ColumnFormatter for plain texts
|
static <T> ColumnFormatter<String> |
ColumnFormatter.text(ColumnFormatter<T> cf)
Get a ColumnFormatter object using the Alignment and width of an existing ColumnFormatter of any type
|
| Modifier and Type | Method and Description |
|---|---|
<T> Table.Builder |
Table.Builder.addColumn(String header,
T[] data,
ColumnFormatter<T> formatter)
Add a column to the ColumnBuilder object
|
static <T> String |
ColumnFormatter.formatText(ColumnFormatter<T> cf,
String s)
Format a string using the Alignment and width of an existing ColumnFormatter for any type
|
static <T> Table |
Table.of(String[] headers,
T[][] data,
ColumnFormatter<T> f)
Quickly build a table from given data
|
static <T> Table |
Table.of(T[][] data,
ColumnFormatter<T> f)
Quickly build a table
|
static <T> ColumnFormatter<String> |
ColumnFormatter.text(ColumnFormatter<T> cf)
Get a ColumnFormatter object using the Alignment and width of an existing ColumnFormatter of any type
|
| Constructor and Description |
|---|
Builder(String header,
T[] data,
ColumnFormatter<T> formatter)
The only constructor must start with a column
|
Copyright © 2016. All rights reserved.