Package org.djutils.data
Class ListDataTable.ListRecord
java.lang.Object
org.djutils.data.ListDataTable.ListRecord
- All Implemented Interfaces:
DataRecord
- Enclosing class:
- ListDataTable
public class ListDataTable.ListRecord extends Object implements DataRecord
Record in a
ListTable.-
Constructor Summary
Constructors Constructor Description ListRecord(Object[] values)Constructor. -
Method Summary
Modifier and Type Method Description ObjectgetValue(String id)Returns the column value of this record.<T> TgetValue(DataColumn<T> column)Returns the column value of this record.Object[]getValues()Returns the column values of this record in the natural order of the columns.StringtoString()
-
Constructor Details
-
ListRecord
Constructor.- Parameters:
values- Object[]; values
-
-
Method Details
-
getValue
Returns the column value of this record.- Specified by:
getValuein interfaceDataRecord- Type Parameters:
T- value type- Parameters:
column- Column<T>; column- Returns:
- T; the column value in this record
-
getValue
Returns the column value of this record.- Specified by:
getValuein interfaceDataRecord- Parameters:
id- String; column id- Returns:
- Object; the column value in this record
-
getValues
Returns the column values of this record in the natural order of the columns.- Specified by:
getValuesin interfaceDataRecord- Returns:
- the column value in this record
-
toString
-