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