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