|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
org.cruxframework.crux.core.client.collection.Map<V>
V - the type of values stored in the Mappublic class Map<V>
The root Map type that provides read-access to a dictionary that might still
be mutable by another actor.
See MutableMap for a description of the role
Map#adapt(Object) plays in the behavior of this class.
| Constructor Summary | |
|---|---|
protected |
Map()
|
| Method Summary | |
|---|---|
void |
clear()
Removes all entries from this map. |
boolean |
containsKey(String key)
Determines if a key is in the set of keys contained in the map. |
V |
get(String key)
Get a value indexed by a key. |
boolean |
isEmpty()
Tests whether this Map contains any element. |
Array<String> |
keys()
|
void |
put(String key,
V value)
Put the value in the map at the given key. |
void |
remove(String key)
Deletes a key-value entry if the key is a member of the key set. |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Map()
| Method Detail |
|---|
public final void clear()
public final boolean containsKey(String key)
key can take any value that allow Map#adapt(Object) to
successfully complete execution.
key - to use for testing membership
true if the key is contained in the mappublic final V get(String key)
null values, a returned null value does not guarantee that there is no such mapping. Use containsKey(K) to determine key membership. key can take any
value that allow Map#adapt(Object) to successfully complete
execution.
key - index to use for retrieval
null otherwisepublic final boolean isEmpty()
true if the map contains no entriespublic final Array<String> keys()
public final void put(String key,
V value)
key must be a value
accepted by the underlying adapter; that is, a call to adapt(element) produces a non-null result.
key - index to the valuevalue - value to be storedpublic final void remove(String key)
key must be such that a call to adapt(element) successfully
completes.
key - index to the key-value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||