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

public class AssociativeDataHashMap<KEY,VALUE> extends AssociativeData<KEY,VALUE>
AssociativeData dataset backed by a HashMap.
See Also:
  • Constructor Details

    • AssociativeDataHashMap

      public AssociativeDataHashMap(PlotInfo plotInfo)
      Parameters:
      plotInfo - plot information
  • Method Details

    • get

      public VALUE get(KEY key)
      Description copied from class: AssociativeData
      Gets the value associated with the key
      Specified by:
      get in class AssociativeData<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 class AssociativeData<KEY,VALUE>
      Returns:
      true if the dataset is modifiable, false if not
    • put

      public void put(KEY key, VALUE value)
      Description copied from class: AssociativeData
      Adds the key-value pair to the dataset.
      Specified by:
      put in class AssociativeData<KEY,VALUE>
      Parameters:
      key - key
      value - value
    • putAll

      public <K extends KEY, V extends VALUE> void putAll(Map<K,V> values)
      Description copied from class: AssociativeData
      Adds all key-value pairs in the map to the dataset.
      Specified by:
      putAll in class AssociativeData<KEY,VALUE>
      Type Parameters:
      K - type of the keys in values
      V - type of the values in values
      Parameters:
      values - keypair map