public final class JsMapFromIntToString extends JavaScriptObject implements MapFromIntToString
MapFromIntToString
.Modifier | Constructor and Description |
---|---|
protected |
JsMapFromIntToString() |
Modifier and Type | Method and Description |
---|---|
static JsMapFromIntToString |
create()
Create a new empty map instance.
|
String |
get(int key)
Retrieves a value for the specified key.
|
boolean |
hasKey(int key)
Indicates whether the map contains a value for the specified key.
|
JsArrayOfInt |
keys()
The keys contained within this map.
|
void |
put(int key,
String value)
Associates a value to the specified key.
|
void |
remove(int key)
Removes the value associated with the specified value, if one exists.
|
void |
set(int key,
String value) |
JsArrayOfString |
values()
The values contained in this map.
|
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
public static JsMapFromIntToString create()
public String get(int key)
MapFromIntToString
get
in interface MapFromIntToString
public boolean hasKey(int key)
MapFromIntToString
hasKey
in interface MapFromIntToString
public JsArrayOfInt keys()
MapFromIntToString
keys
in interface MapFromIntToString
public void put(int key, String value)
MapFromIntToString
put
in interface MapFromIntToString
public void remove(int key)
MapFromIntToString
remove
in interface MapFromIntToString
public void set(int key, String value)
public JsArrayOfString values()
MapFromIntToString
values
in interface MapFromIntToString
Copyright © 2018. All rights reserved.