Class IndexableDataSwappableTable<T>

All Implemented Interfaces:
PlotExceptionCause, Serializable
Direct Known Subclasses:
IndexableDataSwappableTableDouble

public class IndexableDataSwappableTable<T> extends LiveIndexableData<T>
IndexableData dataset whose data is a column in a SwappableTable and whose indices are the row numbers of the column.
See Also:
  • Constructor Details

    • IndexableDataSwappableTable

      public IndexableDataSwappableTable(SwappableTable swappableTable, String column, PlotInfo plotInfo)
      Creates an IndexableDataSwappableTable instance. The data is a column in the swappableTable. Indices are the row numbers of the column.
      Parameters:
      swappableTable - swappable table
      column - column of swappableTable holding the data values
      plotInfo - plot information
      Throws:
      RequirementFailure - swappableTable and column must not be null
      IllegalArgumentException - column must be a column in swappableTable
  • Method Details

    • size

      public int size()
      Description copied from class: IndexableData
      Gets the size of this dataset.
      Specified by:
      size in class IndexableData<T>
      Returns:
      the size of this dataset
    • get

      public T get(int index)
      Description copied from class: IndexableData
      Gets the value at the given index.
      Specified by:
      get in class IndexableData<T>
      Parameters:
      index - index
      Returns:
      value of this dataset at index
    • convert

      public T convert(Object v)
      Converts between the value in the column and the return value of the provider.
      Parameters:
      v - value in the column
      Returns:
      value in the column converted to return type of the provider