Class SimpleDoubleKeyMap<K1,K2,V>

java.lang.Object
io.openems.backend.timedata.timescaledb.SimpleDoubleKeyMap<K1,K2,V>
All Implemented Interfaces:
DoubleKeyMap<K1,K2,V>, Map<K1,Map<K2,V>>

public class SimpleDoubleKeyMap<K1,K2,V> extends Object implements DoubleKeyMap<K1,K2,V>, Map<K1,Map<K2,V>>
  • Constructor Details

  • Method Details

    • size

      public int size()
      Specified by:
      size in interface Map<K1,K2>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Map<K1,K2>
    • containsKey

      public boolean containsKey(Object key)
      Specified by:
      containsKey in interface Map<K1,K2>
    • containsValue

      public boolean containsValue(Object value)
      Specified by:
      containsValue in interface Map<K1,K2>
    • get

      public Map<K2,V> get(Object key)
      Specified by:
      get in interface Map<K1,K2>
    • get

      public V get(K1 key1, K2 key2)
      Description copied from interface: DoubleKeyMap
      Gets the value in the map associated with the keys.
      Specified by:
      get in interface DoubleKeyMap<K1,K2,V>
      Parameters:
      key1 - the key of the first map
      key2 - the key of the second map
      Returns:
      the value or null if not found
    • put

      public Map<K2,V> put(K1 key, Map<K2,V> value)
      Specified by:
      put in interface Map<K1,K2>
    • put

      public V put(K1 key1, K2 key2, V value)
      Description copied from interface: DoubleKeyMap
      Adds a value to the map.
      Specified by:
      put in interface DoubleKeyMap<K1,K2,V>
      Parameters:
      key1 - the first key
      key2 - the second key
      value - the value to put
      Returns:
      the value
    • remove

      public Map<K2,V> remove(Object key)
      Specified by:
      remove in interface Map<K1,K2>
    • putAll

      public void putAll(Map<? extends K1,? extends Map<K2,V>> m)
      Specified by:
      putAll in interface Map<K1,K2>
    • clear

      public void clear()
      Specified by:
      clear in interface Map<K1,K2>
    • keySet

      public Set<K1> keySet()
      Specified by:
      keySet in interface Map<K1,K2>
    • values

      public Collection<Map<K2,V>> values()
      Specified by:
      values in interface Map<K1,K2>
    • entrySet

      public Set<Map.Entry<K1,Map<K2,V>>> entrySet()
      Specified by:
      entrySet in interface Map<K1,K2>