1 package org.djutils.data;
2
3 /**
4 * Consistent set of values corresponding to columns.
5 * <p>
6 * Copyright (c) 2020-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
7 * BSD-style license. See <a href="https://djutils.org/docs/current/djutils/licenses.html">DJUTILS License</a>.
8 * </p>
9 * @author <a href="https://www.tudelft.nl/averbraeck">Alexander Verbraeck</a>
10 * @author <a href="https://www.tudelft.nl/pknoppers">Peter Knoppers</a>
11 */
12 public interface DataRecord
13 {
14
15 /**
16 * Returns the column value of this record.
17 * @param column DataColumn<T>; column
18 * @param <T> value type
19 * @return T; the column value in this record
20 */
21 <T> T getValue(DataColumn<T> column);
22
23 /**
24 * Returns the column value of this record.
25 * @param id String; column id
26 * @return Object; the column value in this record
27 */
28 Object getValue(String id);
29
30 /**
31 * Returns the column values of this record in the natural order of the columns.
32 * @return the column value in this record
33 */
34 Object[] getValues();
35
36 }