Package nis.svc.dat.api
Interface DataRow
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
asBoolean(int index)
The value at column index as a boolean according to the rules of Boolean.parseBoolean(asString)double
asDouble(int index)
The value at column index as a double according to the rules of Double.parseDouble(asString)int
asInteger(int index)
The value at column index as an integer according to the rules of Integer.parseInt(asString)java.lang.Object
asObject(int index)
The value at column index as the originally added Object.java.lang.String
asString(int index)
The value at column index as a string.java.lang.Object[]
list()
The columns as a list.void
set(java.lang.Object... items)
Add a list of items to this row.int
size()
The number of columns in this row.
-
-
-
Field Detail
-
TYPE
static final java.lang.Class<DataRow> TYPE
-
-
Method Detail
-
asString
java.lang.String asString(int index)
The value at column index as a string.- Parameters:
index
- The column index.- Returns:
- the value as a string.
-
asInteger
int asInteger(int index)
The value at column index as an integer according to the rules of Integer.parseInt(asString)- Parameters:
index
- The column index.- Returns:
- the value as an integer.
-
asDouble
double asDouble(int index)
The value at column index as a double according to the rules of Double.parseDouble(asString)- Parameters:
index
- The column index.- Returns:
- the value as a double.
-
asBoolean
boolean asBoolean(int index)
The value at column index as a boolean according to the rules of Boolean.parseBoolean(asString)- Parameters:
index
- The column index.- Returns:
- the value as a boolean.
-
asObject
java.lang.Object asObject(int index)
The value at column index as the originally added Object.- Parameters:
index
- The column index.- Returns:
- the value as an Object.
-
size
int size()
The number of columns in this row.- Returns:
- the number of columns in this row.
-
list
java.lang.Object[] list()
The columns as a list.- Returns:
- the columns as a list of objects in the type they were added.
-
set
void set(java.lang.Object... items)
Add a list of items to this row.- Parameters:
items
-
-
-