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>>
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
Gets the value in the map associated with the keys.boolean
isEmpty()
keySet()
Adds a value to the map.void
int
size()
Collection<Map<K2,
V>> values()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
SimpleDoubleKeyMap
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<K1,
K2>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K1,
K2>
-
get
-
get
Description copied from interface:DoubleKeyMap
Gets the value in the map associated with the keys.- Specified by:
get
in interfaceDoubleKeyMap<K1,
K2, V> - Parameters:
key1
- the key of the first mapkey2
- the key of the second map- Returns:
- the value or null if not found
-
put
-
put
Description copied from interface:DoubleKeyMap
Adds a value to the map.- Specified by:
put
in interfaceDoubleKeyMap<K1,
K2, V> - Parameters:
key1
- the first keykey2
- the second keyvalue
- the value to put- Returns:
- the value
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-