
public final class JsMapFromStringToInt extends JavaScriptObject implements MapFromStringToInt
MapFromStringToInt.| Modifier | Constructor and Description |
|---|---|
protected |
JsMapFromStringToInt() |
| Modifier and Type | Method and Description |
|---|---|
static <T> JsMapFromStringToInt |
create()
Create a new empty map instance.
|
int |
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,
int value)
Associates a value to the specified key.
|
void |
remove(String key)
Removes the value associated with the specified value, if one exists.
|
JsArrayOfInt |
values()
The values contained in this map.
|
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringpublic static <T> JsMapFromStringToInt create()
public int get(String key)
MapFromStringToIntget in interface MapFromStringToIntpublic boolean hasKey(String key)
MapFromStringToInthasKey in interface MapFromStringToIntpublic JsArrayOfString keys()
MapFromStringToIntkeys in interface MapFromStringToIntpublic void put(String key, int value)
MapFromStringToIntput in interface MapFromStringToIntpublic void remove(String key)
MapFromStringToIntremove in interface MapFromStringToIntpublic JsArrayOfInt values()
MapFromStringToIntvalues in interface MapFromStringToIntCopyright © 2016. All rights reserved.