Packagevegas.util
Classpublic class ObjectUtil

The ObjectUtil utility class is an all-static class with methods for working with object.



Public Methods
 MethodDefined by
  
clone(o:Object):Object
[static] Returns the shallow copy of the object.
ObjectUtil
  
copy(o:*):*
[static] Returns the deep copy of the object.
ObjectUtil
  
copyPrimitive(o:Object):Object
[static] Copy the primitive object passed-in argument.
ObjectUtil
  
isEmpty(o:Object):Boolean
[static] Returns true if the passed object is empty of enumerable property.
ObjectUtil
  
isSimple(value:Object):Boolean
[static] Returns true if the specified object is a simple object.
ObjectUtil
  
memberwiseClone(o:*):Object
[static] Creates a shallow copy of the current Object.
ObjectUtil
  
toBoolean(o:*):Boolean
[static] Converts an object to an equivalent Boolean value.
ObjectUtil
  
toNumber(o:*):Number
[static] Converts an object to an equivalent Number value.
ObjectUtil
  
toObject(o:*):Object
[static] Converts an object to an equivalent Object value.
ObjectUtil
  
toSource(... arguments):String
[static] Returns the string representation of the source of the specified object.
ObjectUtil
Method detail
clone()method
public static function clone(o:Object):Object

Returns the shallow copy of the object.

Parameters
o:Object

Returns
Object — the shallow copy of the object.
copy()method 
public static function copy(o:*):*

Returns the deep copy of the object.

Parameters
o:*

Returns
* — the deep copy of the object.
copyPrimitive()method 
public static function copyPrimitive(o:Object):Object

Copy the primitive object passed-in argument.

Parameters
o:Object

Returns
Object
isEmpty()method 
public static function isEmpty(o:Object):Boolean

Returns true if the passed object is empty of enumerable property.

Parameters
o:Object

Returns
Booleantrue if the passed object is empty of enumerable property.
isSimple()method 
public static function isSimple(value:Object):Boolean

Returns true if the specified object is a simple object.

Parameters
value:Object

Returns
Booleantrue if the specified object is a simple object.
memberwiseClone()method 
public static function memberwiseClone(o:*):Object

Creates a shallow copy of the current Object.

Parameters
o:*

Returns
Object
toBoolean()method 
public static function toBoolean(o:*):Boolean

Converts an object to an equivalent Boolean value.

Parameters
o:*

Returns
Boolean
toNumber()method 
public static function toNumber(o:*):Number

Converts an object to an equivalent Number value.

Parameters
o:*

Returns
Number
toObject()method 
public static function toObject(o:*):Object

Converts an object to an equivalent Object value.

Parameters
o:*

Returns
Object
toSource()method 
public static function toSource(... arguments):String

Returns the string representation of the source of the specified object.

Parameters
... arguments

Returns
String — the string representation of the source of the specified object.