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, toString
public static <T> JsMapFromStringTo<T> create()
public V get(String key)
MapFromStringTo
get
in interface MapFromStringTo<V>
public boolean hasKey(String key)
MapFromStringTo
hasKey
in interface MapFromStringTo<V>
public JsArrayOfString keys()
MapFromStringTo
keys
in interface MapFromStringTo<V>
public void put(String key, V value)
MapFromStringTo
put
in interface MapFromStringTo<V>
public void remove(String key)
MapFromStringTo
remove
in interface MapFromStringTo<V>
public JsArrayOf<V> values()
MapFromStringTo
values
in interface MapFromStringTo<V>
Copyright © 2018. All rights reserved.