V - the type of values stored in the Mappublic class Map<V>
extends com.google.gwt.core.client.JavaScriptObject
MutableMap for a description of the role
Map#adapt(Object) plays in the behavior of this class.| Modifier | Constructor and Description |
|---|---|
protected |
Map() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all entries from this map.
|
boolean |
containsKey(String key)
Determines if a key is in the set of keys contained in the map.
|
V |
get(String key)
Get a value indexed by a key.
|
boolean |
isEmpty()
Tests whether this Map contains any element.
|
Array<String> |
keys() |
void |
put(String key,
V value)
Put the value in the map at the given key.
|
void |
remove(String key)
Deletes a key-value entry if the key is a member of the key set.
|
public final void clear()
public final boolean containsKey(String key)
key can take any value that allow Map#adapt(Object) to
successfully complete execution.key - to use for testing membershiptrue if the key is contained in the mappublic final V get(String key)
null values, a returned null value does not guarantee that there is no such mapping. Use containsKey(K) to determine key membership. key can take any
value that allow Map#adapt(Object) to successfully complete
execution.key - index to use for retrievalnull otherwisepublic final boolean isEmpty()
true if the map contains no entriespublic final void put(String key, V value)
key must be a value
accepted by the underlying adapter; that is, a call to adapt(element) produces a non-null result.key - index to the valuevalue - value to be storedpublic final void remove(String key)
key must be such that a call to adapt(element) successfully
completes.key - index to the key-valueCopyright © 2015. All rights reserved.