
public final class JsMapFromStringTo<V> extends JavaScriptObject implements MapFromStringTo<V>
MapFromStringTo.| Modifier | Constructor and Description |
|---|---|
protected |
JsMapFromStringTo() |
| Modifier and Type | Method and Description |
|---|---|
static <T> JsMapFromStringTo<T> |
create()
Create a new empty map instance.
|
V |
get(String key)
Retrieves a value for the specified key.
|
boolean |
hasKey(String key)
Indicates whether the map contains a value for the specified key.
|
JsArrayOfString |
keys()
The keys contained within this map.
|
void |
put(String key,
V value)
Associates a value to the specified key.
|
void |
remove(String key)
Removes the value associated with the specified value, if one exists.
|
JsArrayOf<V> |
values()
The values contained in this map.
|
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringpublic static <T> JsMapFromStringTo<T> create()
public V get(String key)
MapFromStringToget in interface MapFromStringTo<V>public boolean hasKey(String key)
MapFromStringTohasKey in interface MapFromStringTo<V>public JsArrayOfString keys()
MapFromStringTokeys in interface MapFromStringTo<V>public void put(String key, V value)
MapFromStringToput in interface MapFromStringTo<V>public void remove(String key)
MapFromStringToremove in interface MapFromStringTo<V>public JsArrayOf<V> values()
MapFromStringTovalues in interface MapFromStringTo<V>Copyright © 2016. All rights reserved.