Class IndexableDataInfinite<T>
java.lang.Object
com.illumon.iris.db.plot.datasets.data.IndexableData<T>
com.illumon.iris.db.plot.datasets.data.IndexableDataInfinite<T>
- All Implemented Interfaces:
PlotExceptionCause
,Serializable
IndexableData
dataset which ensures no IndexOutOfBoundsException
s
are thrown. Instead, null values are returned.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIndexableDataInfinite
(IndexableData<T> data) Creates an IndexableDataInfinite instance, which wrapsdata
such that out-of-bounds indices return null values. -
Method Summary
Methods inherited from class com.illumon.iris.db.plot.datasets.data.IndexableData
getPlotInfo, snapshot
-
Constructor Details
-
IndexableDataInfinite
Creates an IndexableDataInfinite instance, which wrapsdata
such that out-of-bounds indices return null values.
-
-
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
-
onClose
public void onClose()Description copied from class:IndexableData
Tear down once a figure is removed.- Overrides:
onClose
in classIndexableData<T>
-