Package: | Fabs.util |
Defined In: | Hash.js |
Class: | Hash |
Extends: | Object |
Method | Defined By | |
---|---|---|
Hash()
Parameters:
| Hash | |
add( String key , Mixed object )
:
MixedAdd an key/item pair to the collection Add an key/item pair to the collection Parameters:
| Hash | |
asArray()
:
Array Get all the objects as an array Get all the objects as an array Parameters:
| Hash | |
clear()
:
void Remove all the items and keys from the collection Remove all the items and keys from the collection Parameters:
| Hash | |
each( Function function , Object scope )
:
voidPerform a function on each member of the collection. If a boolean of false is
passed during the performing function, ... Perform a function on each member of the collection. If a boolean of false is
passed during the performing function, the loop is ended. Parameters:
| Hash | |
getAt( Number index )
:
MixedGet an object from the collection at the specified index Get an object from the collection at the specified index Parameters:
| Hash | |
getLength()
:
Number Parameters:
| Hash | |
indexOf( Mixed object )
:
NumberGet the index of an object Get the index of an object Parameters:
| Hash | |
indexOfKey( String key )
:
NumberGet the index of a key Get the index of a key Parameters:
| Hash | |
remove( Mixed object )
:
MixedRemove the specified object from the collection Remove the specified object from the collection Parameters:
| Hash | |
removeAt( Number index )
:
MixedRemove an object from the collection at the specified index Remove an object from the collection at the specified index Parameters:
| Hash |