public final class HeaderDefinition extends Object
| Modifier and Type | Method and Description |
|---|---|
int |
columnIndex(String columnName)
Get the column index of the named column (zero-based).
|
boolean |
equals(Object obj) |
List<String> |
getColumnNames()
Get an immutable copy of the list of column names.
|
int |
hashCode() |
Iterator<String> |
iterator()
Get an iterator to return the names of all the columns in order.
|
static HeaderDefinition |
of(List<String> columnNames)
Create a RowDefinition.
|
static HeaderDefinition |
of(String... columnNames)
Create a RowDefinition when no type information is available.
|
int |
size()
Get the number of columns in this header definition.
|
String |
toString() |
public static HeaderDefinition of(List<String> columnNames)
column, column, column, ...becomes:
column, column.1, column.2, ...for lookup and display purposes. A warning will be printed to the logger.
columnNames - a list of strings, each naming a columnpublic static HeaderDefinition of(String... columnNames)
column, column, column, ...becomes:
column, column.1, column.2, ...for lookup purposes. A warning will be printed to the logger.
columnNames - a vararg array of strings, each naming a columnpublic int columnIndex(String columnName)
columnName - the name of the columnpublic int size()
public Iterator<String> iterator()
public List<String> getColumnNames()
Copyright 2014-Present by Jim Moores
${javadoc.footer.license}