public final class CsvData extends Object
| Constructor and Description |
|---|
CsvData(List<String> header,
List<CsvRow> rows) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getHeader()
Returns the header row - might be
null if no header exists. |
CsvRow |
getRow(int index)
Returns a CsvRow by its index (starting with 0).
|
int |
getRowCount()
Returns the number of rows in this container.
|
List<CsvRow> |
getRows()
Returns an unmodifiable list of rows.
|
public int getRowCount()
public List<String> getHeader()
null if no header exists. The returned list is unmodifiable.null if no header existspublic CsvRow getRow(int index)
index - index of the row to returnIndexOutOfBoundsException - if index is out of rangeCopyright © 2020. All rights reserved.