Class AssociativeDataHashMap<KEY,VALUE>
java.lang.Object
com.illumon.iris.db.plot.datasets.data.AssociativeData<KEY,VALUE>
com.illumon.iris.db.plot.datasets.data.AssociativeDataHashMap<KEY,VALUE>
- All Implemented Interfaces:
PlotExceptionCause,Serializable
public class AssociativeDataHashMap<KEY,VALUE> extends AssociativeData<KEY,VALUE>
AssociativeData dataset backed by a HashMap.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description AssociativeDataHashMap(PlotInfo plotInfo) -
Method Summary
Modifier and Type Method Description VALUEget(KEY key)Gets the value associated with the keybooleanisModifiable()Whether the dataset is modifiable.voidput(KEY key, VALUE value)Adds the key-value pair to the dataset.<K extends KEY, V extends VALUE>
voidputAll(Map<K,V> values)Adds all key-value pairs in the map to the dataset.Methods inherited from class com.illumon.iris.db.plot.datasets.data.AssociativeData
getPlotInfo, onClose, snapshot
-
Constructor Details
-
AssociativeDataHashMap
- Parameters:
plotInfo- plot information
-
-
Method Details
-
get
Description copied from class:AssociativeDataGets the value associated with the key- Specified by:
getin classAssociativeData<KEY,VALUE>- Parameters:
key- key- Returns:
- value associated with the key
-
isModifiable
public boolean isModifiable()Description copied from class:AssociativeDataWhether the dataset is modifiable.- Specified by:
isModifiablein classAssociativeData<KEY,VALUE>- Returns:
- true if the dataset is modifiable, false if not
-
put
Description copied from class:AssociativeDataAdds the key-value pair to the dataset.- Specified by:
putin classAssociativeData<KEY,VALUE>- Parameters:
key- keyvalue- value
-
putAll
Description copied from class:AssociativeDataAdds all key-value pairs in the map to the dataset.- Specified by:
putAllin classAssociativeData<KEY,VALUE>- Type Parameters:
K- type of the keys invaluesV- type of the values invalues- Parameters:
values- keypair map
-