ObjectUtil
Extends:
The ObjectUtil class is an all-static class with methods for
working with Objects within Flex.
You do not create instances of ObjectUtil;
instead you simply call static methods such as the
ObjectUtil.isSimple()
method.
Static Method Summary
Static Public Methods | ||
public static |
dateCompare(a: *, b: *): * Compares the two Date objects and returns an integer value indicating if the first Date object is before, equal to, or after the second item. |
|
public static |
isSimple(value: *): * Returns |
|
public static |
numericCompare(a: *, b: *): * Compares two numeric values. |
|
public static |
stringCompare(a: *, b: *, caseInsensitive: *): * Compares two String values. |
Method Summary
Public Methods | ||
public |
getClassNames(): string[] |
Inherited Summary
From class TypedObject | ||
public |
typeCache: {} |
|
public |
|
|
public |
Returns a list of strings that represent the object hierarchy for this object. |
|
public |
implementsOrExtends(name: *): Boolean Returns true if the class name to check is in the list of class names defined for this class. |
Static Public Methods
public static dateCompare(a: *, b: *): * source
Compares the two Date objects and returns an integer value indicating if the first Date object is before, equal to, or after the second item.
Params:
Name | Type | Attribute | Description |
a | * | Date object. |
|
b | * | Date object. |
Return:
* | 0 if |
public static isSimple(value: *): * source
Returns true
if the object reference specified
is a simple data type. The simple data types include the following:
String
Number
uint
int
Boolean
Date
Array
Params:
Name | Type | Attribute | Description |
value | * | Object inspected. |
Return:
* |
|
public static numericCompare(a: *, b: *): * source
Compares two numeric values.
Params:
Name | Type | Attribute | Description |
a | * | First number. |
|
b | * | Second number. |
Return:
* | 0 is both numbers are NaN.
1 if only |
public static stringCompare(a: *, b: *, caseInsensitive: *): * source
Compares two String values.
Params:
Name | Type | Attribute | Description |
a | * | First String value. |
|
b | * | Second String value. |
|
caseInsensitive | * | Specifies to perform a case insensitive compare,
|
Return:
* | 0 is both Strings are null.
1 if only |
Public Methods
public getClassNames(): string[] source
Returns a list of strings that represent the object hierarchy for this object.