Class AssociativeData<KEY,VALUE>
java.lang.Object
com.illumon.iris.db.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract VALUEGets the value associated with the keyabstract booleanWhether the dataset is modifiable.voidonClose()Tear down once a figure is removed.abstract voidAdds the key-value pair to the dataset.Adds all key-value pairs in the map to the dataset.snapshot()
-
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 invaluesV- type of the values invalues- Parameters:
values- keypair map
-
onClose
public void onClose()Tear down once a figure is removed. -
snapshot
-
getPlotInfo
- Specified by:
getPlotInfoin interfacePlotExceptionCause
-