Class IndexableNumericDataListNumber<T extends Number>

java.lang.Object
io.deephaven.plot.datasets.data.IndexableNumericData
io.deephaven.plot.datasets.data.IndexableNumericDataListNumber<T>
All Implemented Interfaces:
PlotExceptionCause, Serializable

public class IndexableNumericDataListNumber<T extends Number> extends IndexableNumericData
IndexableNumericData dataset backed by a list of Numbers. When accessed, data values are converted to doubles before being returned.
See Also:
  • Constructor Details

    • IndexableNumericDataListNumber

      public IndexableNumericDataListNumber(List<T> data, PlotInfo plotInfo)
      Creates an IndexableNumericDataListNumber instance.
      Parameters:
      data - data
      plotInfo - plot information
      Throws:
      RequirementFailure - data must not be null
  • Method Details

    • size

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

      public double get(int i)
      Description copied from class: IndexableNumericData
      Gets the value at the specified index as a double.
      Specified by:
      get in class IndexableNumericData
      Parameters:
      i - index
      Returns:
      value at index as a double