Class ListDataTable.ListRecord

java.lang.Object
org.djutils.data.ListDataTable.ListRecord
All Implemented Interfaces:
DataRecord
Enclosing class:
ListDataTable

public class ListDataTable.ListRecord
extends Object
implements DataRecord
Record in a ListTable.
  • Constructor Details

    • ListRecord

      public ListRecord​(Object[] values)
      Constructor.
      Parameters:
      values - Object[]; values
  • Method Details

    • getValue

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

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

      public Object[] getValues()
      Returns the column values of this record in the natural order of the columns.
      Specified by:
      getValues in interface DataRecord
      Returns:
      the column value in this record
    • toString

      public String toString()
      Overrides:
      toString in class Object