K - the key typeV - the value type@Deprecated public class JreJsMap<K,V> extends JsMap<K,V>
JsMap, should only be used for testing.JsMap.ForEachCallback<K,V>| Constructor and Description |
|---|
JreJsMap()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Deprecated.
Removes all mappings from this map.
|
boolean |
delete(K key)
Deprecated.
Removes the mapping for a given key.
|
void |
forEach(JsMap.ForEachCallback<K,V> callback)
Deprecated.
Invokes the provided callback for each mapping in this map.
|
V |
get(K key)
Deprecated.
Gets the value mapped for the given key.
|
boolean |
has(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.
|
int |
size()
Deprecated.
Gets the number of entries in this map.
|
public JsMap<K,V> set(K key, V value)
JsMappublic V get(K key)
JsMapnull if
there is no mapping or if the key is explicitly mapped to
null.public boolean has(K key)
JsMappublic boolean delete(K key)
JsMappublic void clear()
JsMappublic void forEach(JsMap.ForEachCallback<K,V> callback)
JsMapNote that this is the only way of iteration supported in IE11.
Copyright © 2000–2022 Vaadin Ltd. All rights reserved.