public class DataRow extends Object
| Modifier and Type | Method and Description |
|---|---|
static io.vavr.control.Try<DataRow> |
build(DataTable table,
Integer rowIdx)
Builds an instance of a DataRow.
|
Object[] |
data()
Returns the data as an array for this row.
|
io.vavr.control.Try<Object> |
get(Integer colIndex)
Returns the data at the specified column index, returning as an object.
|
io.vavr.control.Try<Object> |
get(String colName)
Returns the data in the specified column name, returning as an object.
|
<T> T |
getAs(Class<T> type,
Integer idx)
Returns the value of a particular row column as a specific type.
|
<T> T |
getAs(Class<T> type,
String colName)
Returns the value of a particular row column as a specific type.
|
Integer |
rowIdx()
Gets the row index.
|
DataTable |
table()
Returns the underlying Data Table for this row.
|
<T> io.vavr.control.Try<T> |
tryGetAs(Class<T> type,
Integer idx)
Returns the value of a particular row column as a specific type.
|
<T> io.vavr.control.Try<T> |
tryGetAs(Class<T> type,
String colName)
Returns the value of a particular row column as a specific type.
|
public DataTable table()
public Integer rowIdx()
public Object[] data()
public io.vavr.control.Try<Object> get(Integer colIndex)
colIndex - The column index to return the value of.public io.vavr.control.Try<Object> get(String colName)
colName - The column to return the value of.public <T> T getAs(Class<T> type, Integer idx)
T - The value type.type - The data type.idx - The index of the column.public <T> T getAs(Class<T> type, String colName)
T - The value type.type - The data type.colName - The name of the column.public <T> io.vavr.control.Try<T> tryGetAs(Class<T> type, Integer idx)
T - The value type.type - The data type.idx - The index of the column.public <T> io.vavr.control.Try<T> tryGetAs(Class<T> type, String colName)
T - The value type.type - The data type.colName - The name of the column.public static io.vavr.control.Try<DataRow> build(DataTable table, Integer rowIdx)
table - The DataTable the DataRow is pointing to.rowIdx - The row index.Copyright © 2017. All rights reserved.