|
TROIKA.ASP - the MVC framework | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--HashMap
This is HashMap class - implementation of an object that maps keys to values.
Defined in HashMap.js
| Constructor Summary | |
HashMap()
Constructs an empty HashMap object. |
|
| Method Summary | |
void
|
clear()
Removes all of the key/value pairs this map. |
boolean
|
containsKey(<Object> key)
Returns true if this map contains the specified key. |
boolean
|
containsValue(<Object> value)
Returns true if this map contains the specified value. |
Object
|
get(<Object> key)
Returns value for the key. |
HashMap
|
init()
Initializes an empty HashMap. |
boolean
|
isEmpty()
Tests if this map has no elements. |
Array
|
keySet()
Returns an array of the keys contained in this map. |
void
|
populate(collection)
Populates this map with key/value pairs from the specified collection. |
Object
|
put(<Object> key, <Object> value)
Associates the specified value with the specified key in this map. |
void
|
putAll(<Object> values)
Copies all of the mappings from the specified map to this map. |
Object
|
remove(<Object> key)
Removes the mapping for this key from this map if it is present. |
int
|
size()
Returns the number of key-value mappings in this map. |
| Constructor Detail |
HashMap()
| Method Detail |
void clear()
boolean containsKey(<Object> key)
key - The key whose presence in this map is to be tested.
boolean containsValue(<Object> value)
value - The value whose presence in this map is to be tested.
Object get(<Object> key)
key - The key whose value in this map is to be returned.
HashMap init()
boolean isEmpty()
Array keySet()
void populate(collection)
Object put(<Object> key, <Object> value)
key - The key with which the specified value is to be associated.
value - The value to be associated with the specified key.
void putAll(<Object> values)
values - Mappings to be stored in this map.
Object remove(<Object> key)
key - The key whose mapping is to be removed from the map.
int size()
|
TROIKA.ASP - the MVC framework | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |