Packagenet.guttershark.util
Classpublic final class ObjectUtils

The ObjectUtils class has utility methods for working with objects.



Public Methods
 MethodDefined by
  
clone(object:*):*
Clone an object instance.
ObjectUtils
  
[static] Singleton access.
ObjectUtils
Method detail
clone()method
public function clone(object:*):*

Clone an object instance.

Parameters
object:* — The object to clone.

Returns
*

Example
Cloning a generic object:
 
   var utils:Utilities = Utilities.gi();
   var myObj:Object = new Object();
   myObj.message = "hello world";
   var myCopy:Object = utils.object.clone(myObj);
   trace(myCopy.message);
   

gi()method 
public static function gi():ObjectUtils

Singleton access.

Returns
ObjectUtils