Package io.deephaven.plot.datasets.data
Class AssociativeDataHashMap<KEY,VALUE>
java.lang.Object
io.deephaven.plot.datasets.data.AssociativeData<KEY,VALUE>
io.deephaven.plot.datasets.data.AssociativeDataHashMap<KEY,VALUE>
- All Implemented Interfaces:
PlotExceptionCause
,Serializable
AssociativeData
dataset backed by a HashMap
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the value associated with the keyboolean
Whether the dataset is modifiable.void
Adds the key-value pair to the dataset.Adds all key-value pairs in the map to the dataset.Methods inherited from class io.deephaven.plot.datasets.data.AssociativeData
getPlotInfo
-
Constructor Details
-
AssociativeDataHashMap
- Parameters:
plotInfo
- plot information
-
-
Method Details
-
get
Description copied from class:AssociativeData
Gets the value associated with the key- Specified by:
get
in classAssociativeData<KEY,
VALUE> - Parameters:
key
- key- Returns:
- value associated with the key
-
isModifiable
public boolean isModifiable()Description copied from class:AssociativeData
Whether the dataset is modifiable.- Specified by:
isModifiable
in classAssociativeData<KEY,
VALUE> - Returns:
- true if the dataset is modifiable, false if not
-
put
Description copied from class:AssociativeData
Adds the key-value pair to the dataset.- Specified by:
put
in classAssociativeData<KEY,
VALUE> - Parameters:
key
- keyvalue
- value
-
putAll
Description copied from class:AssociativeData
Adds all key-value pairs in the map to the dataset.- Specified by:
putAll
in classAssociativeData<KEY,
VALUE> - Type Parameters:
K
- type of the keys invalues
V
- type of the values invalues
- Parameters:
values
- keypair map
-