public final class Column
extends java.lang.Object
| Constructor and Description |
|---|
Column(java.util.Optional<java.lang.String> header,
java.util.List<java.lang.String> data)
Create a column with the given header
and the given list of data entries.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
data()
Get the data associated with this column.
|
java.util.Optional<java.lang.String> |
header()
Get the header associated with this column.
|
public Column(java.util.Optional<java.lang.String> header,
java.util.List<java.lang.String> data)
throws java.lang.NullPointerException
header - the header of this column, which may be absentdata - the list of entries in this column,
none of which may be null
(this will be shallow-copied)java.lang.NullPointerException - if header == null,
or data == null or data contains any null entries