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 aListTable. 
- 
- 
Constructor Summary
Constructors Constructor Description ListRecord(Object[] values)Constructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods 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 Detail
- 
ListRecord
public ListRecord(Object[] values)
Constructor.- Parameters:
 values- Object[]; values
 
 - 
 
- 
Method Detail
- 
getValue
public <T> T getValue(DataColumn<T> column)
Returns the column value of this record.- Specified by:
 getValuein interfaceDataRecord- Type Parameters:
 T- value type- Parameters:
 column- DataColumn<T>; column- Returns:
 - T; the column value in this record
 
 
- 
getValue
public Object getValue(String id)
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
public Object[] 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
 
 
 - 
 
 -