Class IndexableDataArrayNullCategory<T>

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

public class IndexableDataArrayNullCategory<T> extends IndexableData<T>
IndexableData dataset backed by an array. If the array contains a null value, return a NULL_CATEGORY.
See Also:
  • Constructor Details

    • IndexableDataArrayNullCategory

      public IndexableDataArrayNullCategory(T[] data, PlotInfo plotInfo)
      Creates an IndexableDataArray instance.
      Parameters:
      data - data
      plotInfo - plot information
      Throws:
      RequirementFailure - data must not be null
  • 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