Package org.djutils.data
Class Row
- java.lang.Object
-
- org.djutils.data.Row
-
public class Row extends Object
Row in a table.Copyright (c) 2020-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUTILS License.- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)ObjectgetValue(int columnNumber)Returns the column value in this row.ObjectgetValue(String id)Returns the column value in this row.<T> TgetValue(Column<T> column)Returns the column value in this row.Object[]getValues()Returns the column values of this record in the natural order of the columns.inthashCode()StringtoString()
-
-
-
Method Detail
-
getValue
public <T> T getValue(Column<T> column)
Returns the column value in this row. For performance, usegetValue(int columnNumber).- Type Parameters:
T- value type.- Parameters:
column- Column<T>; column.- Returns:
- T; the column value in this row.
-
getValue
public Object getValue(String id)
Returns the column value in this row. For performance, usegetValue(int columnNumber).- Parameters:
id- String; column id.- Returns:
- the column value in this row.
-
getValue
public Object getValue(int columnNumber)
Returns the column value in this row.- Parameters:
columnNumber- int; column number.- Returns:
- Object; the column value in this row.
-
getValues
public Object[] getValues()
Returns the column values of this record in the natural order of the columns.- Returns:
- Object[]; the column value in this record
-
-