public final class CsvRow
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getField(int index)
Gets a field value by its index (starting with 0).
|
int |
getFieldCount()
Gets the number of fields of this row.
|
java.util.List<java.lang.String> |
getFields()
Gets all fields of this row as an unmodifiable list.
|
long |
getOriginalLineNumber()
Returns the original line number (starting with 1).
|
boolean |
isComment()
Provides the information if the row is a commented row.
|
boolean |
isEmpty()
Provides the information if the row is an empty row.
|
java.lang.String |
toString() |
public long getOriginalLineNumber()
CsvReader.CsvReaderBuilder.skipEmptyRows(boolean).public java.lang.String getField(int index)
index - index of the field to returnnulljava.lang.IndexOutOfBoundsException - if index is out of rangepublic java.util.List<java.lang.String> getFields()
nullpublic int getFieldCount()
CsvReader.CsvReaderBuilder.errorOnDifferentFieldCount(boolean)public boolean isComment()
true if the row is a commented rowCsvReader.CsvReaderBuilder.commentStrategy(CommentStrategy)public boolean isEmpty()
true if the row is an empty rowCsvReader.CsvReaderBuilder.skipEmptyRows(boolean)public java.lang.String toString()
toString in class java.lang.Object