package org.djutils.data;
/**
* Consistent set of values corresponding to columns.
*
* Copyright (c) 2020-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
* BSD-style license. See DJUTILS License.
*
* @author Alexander Verbraeck
* @author Peter Knoppers
*/
public interface DataRecord
{
/**
* Returns the column value of this record.
* @param column DataColumn<T>; column
* @param value type
* @return T; the column value in this record
*/
T getValue(DataColumn column);
/**
* Returns the column value of this record.
* @param id String; column id
* @return Object; the column value in this record
*/
Object getValue(String id);
/**
* Returns the column values of this record in the natural order of the columns.
* @return the column value in this record
*/
Object[] getValues();
}