Class JreJsWeakMap<K,V>
- java.lang.Object
-
- com.vaadin.client.flow.collection.jre.JreJsWeakMap<K,V>
-
- Type Parameters:
K- the key typeV- the value type
- All Implemented Interfaces:
JsWeakMap<K,V>
@Deprecated public class JreJsWeakMap<K,V> extends Object implements JsWeakMap<K,V>
Deprecated.Should only be used for testing.JRE implementation ofJsMap, should only be used for testing.- Since:
- 1.0
- Author:
- Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor Description JreJsWeakMap()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleandelete(K key)Deprecated.Removes the mapping for a given key.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.JsWeakMap<K,V>set(K key, V value)Deprecated.Sets a value in this map, overwriting any previous mapping if present.
-
-
-
Method Detail
-
set
public JsWeakMap<K,V> set(K key, V value)
Deprecated.Description copied from interface:JsWeakMapSets a value in this map, overwriting any previous mapping if present.
-
get
public V get(K key)
Deprecated.Description copied from interface:JsWeakMapGets the value mapped for the given key. Returnsnullif there is no mapping, if the key is explicitly mapped tonullor if the key has been garbage collected.
-
has
public boolean has(K key)
Deprecated.Description copied from interface:JsWeakMapChecks whether this map contains a mapping for the given key.
-
-