Package org.djutils.data
Class Row
java.lang.Object
org.djutils.data.Row
Row in a table.
Copyright (c) 2020-2024 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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getValue
(int columnNumber) Returns the column value in this row.Returns the column value in this row.<T> T
Returns the column value in this row.Object[]
Returns the column values of this record in the natural order of the columns.int
hashCode()
toString()
-
Constructor Details
-
Row
Constructor.- Parameters:
table
- Table; table.values
- Object[]; values.
-
-
Method Details
-
getValue
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
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
Returns the column value in this row.- Parameters:
columnNumber
- int; column number.- Returns:
- Object; the column value in this row.
-
getValues
Returns the column values of this record in the natural order of the columns.- Returns:
- Object[]; the column value in this record
-
hashCode
public int hashCode() -
equals
-
toString
-