Generated by JsDoc Toolkit 2.3.2 on Sun Jun 13 2010 17:28:19 GMT+0200 (CEST)
HTML template: Codeview

Namespace calitha.collections.util


Defined in: util.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
This is a collection of misc convenience methods.
Method Summary
Method Attributes Method Name and Description
<static>  
calitha.collections.util.equals(value1, value2)
Determines if two values are equal.
<static>  
calitha.collections.util.has(obj, property)
Determines if the object has a property with this name
<static>  
calitha.collections.util.hashCode(obj)
Determines the hashcode for an object.
<static>  
calitha.collections.util.isObjectInstanceOf(obj, clazz)
Determines if the object is an instance of a class (which is a function in javascript).
Namespace Detail
calitha.collections.util
This is a collection of misc convenience methods. They primarily try to prevent extra parameter validation (for example for null) in code.
Method Detail
<static> {Boolean} calitha.collections.util.equals(value1, value2)
Determines if two values are equal. Values are strictly equal if the strictly equals operator === return true, or if the equals method on the object return true. Of course object must have such a method. Otherwise it returns false.
Parameters:
{Object} value1
a value
{Object} value2
another value
Returns:
{Boolean} true if the values are equal
<static> {Boolean} calitha.collections.util.has(obj, property)
Determines if the object has a property with this name
Parameters:
obj
object
property
property name
Returns:
{Boolean} true if it has the property
<static> {Number} calitha.collections.util.hashCode(obj)
Determines the hashcode for an object. The object can be null in which case it returns 0.
Parameters:
{Object} obj
object
Returns:
{Number} hash code
<static> {Boolean} calitha.collections.util.isObjectInstanceOf(obj, clazz)
Determines if the object is an instance of a class (which is a function in javascript).

This function uses the special dojo isInstanceOf function, so it can deal with multiple inheritance.

Parameters:
{Object} obj
object
{Function} clazz
class
Returns:
{Boolean} true if the object is an instance of the class