Package org.djutils.data
Class SimpleDataColumn<T>
java.lang.Object
org.djutils.data.SimpleDataColumn<T>
- Type Parameters:
T
- the value type
- All Implemented Interfaces:
Serializable
,org.djutils.base.Identifiable
,DataColumn<T>
public class SimpleDataColumn<T> extends Object implements DataColumn<T>, Serializable
SimpleColumn implements the Column interface with a single value.
Copyright (c) 2020-2020 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.
Copyright (c) 2020-2020 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SimpleDataColumn(String id, String description, Class<T> valueType)
Construct a simple, single valued column. -
Method Summary
Modifier and Type Method Description String
getDescription()
Returns the column description.String
getId()
Class<T>
getValueType()
Returns the type of the values in the column.String
toString()
-
Constructor Details
-
SimpleDataColumn
Construct a simple, single valued column.- Parameters:
id
- String; the column id, preferably without spaces or symbolsdescription
- String; the column descriptionvalueType
- Class<T>; the value type
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceorg.djutils.base.Identifiable
-
getDescription
Returns the column description.- Specified by:
getDescription
in interfaceDataColumn<T>
- Returns:
- String; column description
-
getValueType
Returns the type of the values in the column.- Specified by:
getValueType
in interfaceDataColumn<T>
- Returns:
- Class<?>; type of the values in the column
-
toString
-