public interface Row
Modifier and Type | Method and Description |
---|---|
String |
asString()
Returns the row as a
String . |
int |
getSize()
Returns the number of values contained in the row.
|
<T> T |
getValue(int index,
CsvValueType<T> csvValueType)
Retrieves a value at a column specified by its index.
|
<T> T |
getValueByName(String columnName,
CsvValueType<T> csvValueType)
Retrieves a value at a column specified by its name.
|
<T> T getValue(int index, CsvValueType<T> csvValueType)
If the value cannot be converted to the requested type, this throws an exception.
T
- type of data requestedindex
- the column index. Cannot be negative or greater than/equal to the number of values.csvValueType
- type of data requested. Cannot be null.<T> T getValueByName(String columnName, CsvValueType<T> csvValueType)
If the value cannot be converted to the requested type, this throws an exception.
If the CSV this row belongs to does not have headers, this throws an exception.
T
- type of data requestedcolumnName
- the column name. Cannot be null or empty.csvValueType
- type of data requested. Cannot be null.int getSize()
Copyright © Veeva Systems 2017–2021. All rights reserved.