package org.opentrafficsim.kpi.sampling;
/**
* Simple column implementation.
*
* Copyright (c) 2020-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
* BSD-style license. See OpenTrafficSim License.
*
* @author Alexander Verbraeck
* @author Peter Knoppers
* @author Wouter Schakel
* @param value type
*/
public class SimpleColumn implements Column
{
/** Id. */
private final String id;
/** Description. */
private final String description;
/** Value type. */
private final Class valueType;
/**
* Constructor.
* @param id String; id
* @param description String; description
* @param valueType Class<T>; value type
*/
public SimpleColumn(final String id, final String description, final Class valueType)
{
this.id = id;
this.description = description;
this.valueType = valueType;
}
/** {@inheritDoc} */
@Override
public String getId()
{
return this.id;
}
/** {@inheritDoc} */
@Override
public String getDescription()
{
return this.description;
}
/** {@inheritDoc} */
@Override
public Class getValueType()
{
return this.valueType;
}
/** {@inheritDoc} */
@Override
public String toString()
{
return "SimpleColumn [id=" + id + ", description=" + description + ", valueType=" + valueType + "]";
}
}