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-2025 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
Constructors -
Method Summary
-
Constructor Details
-
Column
Make a new column for a table with an id, description, type, and unit.- Parameters:
id
- id of the columndescription
- description of the columnvalueType
- value type of the columnunit
- unit, may benull
-
Column
Make a new column for a table with an id, description, type. The unit is blank (null).- Parameters:
id
- id of the columndescription
- description of the columnvalueType
- value type of the column
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceorg.djutils.base.Identifiable
-
getDescription
Returns the column description.- Returns:
- column description
-
getValueType
Returns the type of the values in the column.- Returns:
- type of the values in the column
-
getUnit
Returns the unit of the column. Data is written an read using this unit.- Returns:
- unit of the column
-
hashCode
public int hashCode() -
equals
-
toString
-