Package io.deephaven.plot.datasets.data
Class AssociativeData<KEY,VALUE>
java.lang.Object
io.deephaven.plot.datasets.data.AssociativeData<KEY,VALUE>
- All Implemented Interfaces:
PlotExceptionCause
,Serializable
- Direct Known Subclasses:
AssociativeDataHashMap
,AssociativeDataWithDefault
,LiveAssociativeData
public abstract class AssociativeData<KEY,VALUE>
extends Object
implements PlotExceptionCause, Serializable
Dataset which has values associated with keys.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract VALUE
Gets the value associated with the keyabstract boolean
Whether the dataset is modifiable.abstract void
Adds the key-value pair to the dataset.Adds all key-value pairs in the map to the dataset.
-
Constructor Details
-
AssociativeData
- Parameters:
plotInfo
- plot information
-
-
Method Details
-
get
Gets the value associated with the key- Parameters:
key
- key- Returns:
- value associated with the key
-
isModifiable
public abstract boolean isModifiable()Whether the dataset is modifiable.- Returns:
- true if the dataset is modifiable, false if not
-
put
Adds the key-value pair to the dataset.- Parameters:
key
- keyvalue
- value
-
putAll
Adds all key-value pairs in the map to the dataset.- Type Parameters:
K
- type of the keys invalues
V
- type of the values invalues
- Parameters:
values
- keypair map
-
getPlotInfo
- Specified by:
getPlotInfo
in interfacePlotExceptionCause
-