Interface DataRecord

All Known Implementing Classes:
ListDataTable.ListRecord

public interface DataRecord
Consistent set of values corresponding to columns.

Copyright (c) 2020-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Method Summary

    Modifier and Type Method Description
    Object getValue​(String id)
    Returns the column value of this record.
    <T> T getValue​(DataColumn<T> column)
    Returns the column value of this record.
    Object[] getValues()
    Returns the column values of this record in the natural order of the columns.
  • Method Details

    • getValue

      <T> T getValue​(DataColumn<T> column)
      Returns the column value of this record.
      Type Parameters:
      T - value type
      Parameters:
      column - Column<T>; column
      Returns:
      T; the column value in this record
    • getValue

      Object getValue​(String id)
      Returns the column value of this record.
      Parameters:
      id - String; column id
      Returns:
      Object; the column value in this record
    • getValues

      Object[] getValues()
      Returns the column values of this record in the natural order of the columns.
      Returns:
      the column value in this record