TROIKA.ASP - the MVC framework

Class HashMap

Object
   |
   +--HashMap
Direct Known Subclasses:
SessionAdapter, RequestAdapter

class 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

HashMap()

Method Detail

clear

void clear()

containsKey

boolean containsKey(<Object> key)

containsValue

boolean containsValue(<Object> value)

get

Object get(<Object> key)

init

HashMap init()

isEmpty

boolean isEmpty()

keySet

Array keySet()

populate

void populate(collection)

put

Object put(<Object> key, <Object> value)

putAll

void putAll(<Object> values)

remove

Object remove(<Object> key)

size

int size()

TROIKA.ASP - the MVC framework

www.troika-asp.com
Documentation generated on Sun Jun 15 17:59:32 2008