Package org.djutils.data
Class Column<T>
java.lang.Object
org.djutils.data.Column<T>
- Type Parameters:
T
- value type
- All Implemented Interfaces:
Serializable
,org.djutils.base.Identifiable
Column identifier and descriptor.
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
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Column
Make a new column for a table with an id, description, type, and unit.- Parameters:
id
- String; id of the columndescription
- String; description of the columnvalueType
- Class<T>; value type of the columnunit
- String; unit, may benull
-
Column
Make a new column for a table with an id, description, type. The unit is blank (null).- Parameters:
id
- String; id of the columndescription
- String; description of the columnvalueType
- Class<T>; value type of the column
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceorg.djutils.base.Identifiable
-
getDescription
Returns the column description.- Returns:
- String; column description
-
getValueType
Returns the type of the values in the column.- Returns:
- Class<?>; type of the values in the column
-
getUnit
Returns the unit of the column. Data is written an read using this unit.- Returns:
- String; unit of the column
-
hashCode
public int hashCode() -
equals
-
toString
-