
public final class JsMapFromIntTo<V> extends JavaScriptObject implements MapFromIntTo<V>
MapFromIntTo.| Modifier | Constructor and Description |
|---|---|
protected |
JsMapFromIntTo() |
| Modifier and Type | Method and Description |
|---|---|
static <T> JsMapFromIntTo<T> |
create()
Create a new empty map instance.
|
V |
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,
V value)
Associates a value to the specified key.
|
void |
remove(int 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> JsMapFromIntTo<T> create()
public V get(int key)
MapFromIntToget in interface MapFromIntTo<V>public final boolean hasKey(int key)
MapFromIntTohasKey in interface MapFromIntTo<V>public final JsArrayOfInt keys()
MapFromIntTokeys in interface MapFromIntTo<V>public void put(int key,
V value)
MapFromIntToput in interface MapFromIntTo<V>public final void remove(int key)
MapFromIntToremove in interface MapFromIntTo<V>public final JsArrayOf<V> values()
MapFromIntTovalues in interface MapFromIntTo<V>Copyright © 2016. All rights reserved.