Class JreJsMap<K,V>
java.lang.Object
com.vaadin.client.flow.collection.JsMap<K,V>
com.vaadin.client.flow.collection.jre.JreJsMap<K,V>
- Type Parameters:
K- the key typeV- the value type
Deprecated.
Should only be used for testing.
JRE implementation of
JsMap, should only be used for testing.- Since:
- 1.0
- Author:
- Vaadin Ltd
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.client.flow.collection.JsMap
JsMap.ForEachCallback<K,V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Deprecated.Removes all mappings from this map.booleanDeprecated.Removes the mapping for a given key.voidforEach(JsMap.ForEachCallback<K, V> callback) Deprecated.Invokes the provided callback for each mapping in this map.Deprecated.Gets the value mapped for the given key.booleanDeprecated.Checks whether this map contains a mapping for the given key.Deprecated.Sets a value in this map, overwriting any previous mapping if present.intsize()Deprecated.Gets the number of entries in this map.
-
Constructor Details
-
JreJsMap
public JreJsMap()Deprecated.
-
-
Method Details
-
set
Deprecated.Description copied from class:JsMapSets a value in this map, overwriting any previous mapping if present. -
get
Deprecated.Description copied from class:JsMapGets the value mapped for the given key. Returnsnullif there is no mapping or if the key is explicitly mapped tonull. -
has
Deprecated.Description copied from class:JsMapChecks whether this map contains a mapping for the given key. -
delete
Deprecated.Description copied from class:JsMapRemoves the mapping for a given key. -
clear
public void clear()Deprecated.Description copied from class:JsMapRemoves all mappings from this map. -
forEach
Deprecated.Description copied from class:JsMapInvokes the provided callback for each mapping in this map.Note that this is the only way of iteration supported in IE11.
-
size
public int size()Deprecated.Description copied from class:JsMapGets the number of entries in this map.
-