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 public class JreJsMap<K,V> extends JsMap<K,V>
Deprecated.Should only be used for testing.JRE implementation ofJsMap, 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 Constructor Description JreJsMap()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclear()Deprecated.Removes all mappings from this map.booleandelete(K key)Deprecated.Removes the mapping for a given key.voidforEach(JsMap.ForEachCallback<K,V> callback)Deprecated.Invokes the provided callback for each mapping in this map.Vget(K key)Deprecated.Gets the value mapped for the given key.booleanhas(K key)Deprecated.Checks whether this map contains a mapping for the given key.JsMap<K,V>set(K key, V value)Deprecated.Sets a value in this map, overwriting any previous mapping if present.intsize()Deprecated.Gets the number of entries in this map.
-
-
-
Method Detail
-
set
public JsMap<K,V> set(K key, V value)
Deprecated.Description copied from class:JsMapSets a value in this map, overwriting any previous mapping if present.
-
get
public V get(K key)
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
public boolean has(K key)
Deprecated.Description copied from class:JsMapChecks whether this map contains a mapping for the given key.
-
delete
public boolean delete(K key)
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
public void forEach(JsMap.ForEachCallback<K,V> callback)
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.
-
-