Package io.deephaven.plot.datasets.data
Class IndexableDataArray<T>
java.lang.Object
io.deephaven.plot.datasets.data.IndexableData<T>
io.deephaven.plot.datasets.data.IndexableDataArray<T>
- All Implemented Interfaces:
PlotExceptionCause
,Serializable
IndexableData
dataset backed by an array.- See Also:
-
Constructor Summary
ConstructorDescriptionIndexableDataArray
(T[] data, PlotInfo plotInfo) Creates an IndexableDataArray instance. -
Method Summary
Methods inherited from class io.deephaven.plot.datasets.data.IndexableData
getPlotInfo
-
Constructor Details
-
IndexableDataArray
Creates an IndexableDataArray instance.- Parameters:
data
- dataplotInfo
- 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 classIndexableData<T>
- Returns:
- the size of this dataset
-
get
Description copied from class:IndexableData
Gets the value at the given index.- Specified by:
get
in classIndexableData<T>
- Parameters:
index
- index- Returns:
- value of this dataset at
index
-