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
,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-2021 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
All Methods Instance Methods Concrete Methods 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()
-
-
-
Method Detail
-
getId
public final String getId()
- Specified by:
getId
in interfaceIdentifiable
-
getDescription
public final String getDescription()
Returns the column description.- Specified by:
getDescription
in interfaceDataColumn<T>
- Returns:
- String; column description
-
getValueType
public Class<T> 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
-
-