Sydney

Class Hash

Object
   |
   +--Hash
Direct Known Subclasses:
WidgetHash

class Hash

Defined in hash.js


Field Summary
 Function hash
          
 
Constructor Summary
Hash (<Function> hashFunc)
            A hash map.
 
Method Summary
 Object add(<Object> key, <Object> value)
           Adds a mapping from key to value.
 void clear()
           Removes all key-value pairs from this hash.
 boolean contains(<Object> key)
           Checks the hash for a mapping from key to anything and returns true if such a mapping exists.
 boolean containsKey(<string> index)
           Returns true if and only if there is an key in the hash with a hash value identical to index.
 Object get(<Object> key)
           Retrieves the value associated with key from the map.
 Object remove(<Object> key)
           Removes the mapping for which key is the key.
<static> string IDENTITY(<Object> obj)
           A hash function that returns its argument.

Field Detail

hash

Function hash

Constructor Detail

Hash

function Hash(<Function> hashFunc)
Method Detail

add

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

clear

void clear()

contains

boolean contains(<Object> key)

containsKey

boolean containsKey(<string> index)

get

Object get(<Object> key)

remove

Object remove(<Object> key)

IDENTITY

<static> string IDENTITY(<Object> obj)

Sydney

SourceForge.net Logo