Package com.bayesserver.data
Class DataRow
- java.lang.Object
-
- com.bayesserver.data.DataRow
-
public final class DataRow extends Object
Represents a row of data in a DataTable, a simple in-memory data store.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataRowcopy()Creates a copy of this instance.Objectget(int index)Gets the value at the specified index.DataTablegetTable()voidset(int index, Object value)Sets the value at the specified index.
-
-
-
Constructor Detail
-
DataRow
public DataRow(Object[] items)
Creates a new instance of a DataRow with the given items.- Parameters:
items- The row values.
-
-
Method Detail
-
copy
public DataRow copy()
Creates a copy of this instance.- Returns:
- The new instance.
-
getTable
public DataTable getTable()
-
get
public Object get(int index)
Gets the value at the specified index.- Parameters:
index- The zero based index of the item.- Returns:
- The item at the given index.
-
set
public void set(int index, Object value)Sets the value at the specified index.- Parameters:
index- The zero based index of the item.
-
-