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 Object
getValue(String id)
Returns the column value of this record.<T> T
getValue(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.String
toString()
-
Constructor Details
-
ListRecord
Constructor.- Parameters:
values
- Object[]; values
-
-
Method Details
-
getValue
Returns the column value of this record.- Specified by:
getValue
in 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:
getValue
in 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:
getValues
in interfaceDataRecord
- Returns:
- the column value in this record
-
toString
-