Class org.aswing.utils.ArrayUtils

Description

Method Index

cloneArray(), each(), indexInArray(), removeAllBehindSomeIndex(), removeAllFromArray(), removeFromArray()

Method Detail

each

static public function each(arr:Array, operation:Function):Void

Call the operation by pass each element of the array once.

for example:

 //hide all component in vector components
 ArrayUtils.each( 
     components,
     function(c:Component){
         c.setVisible(false);
     });
 
 

Parameters

arrthe array for each element will be operated.

See Also

  • Vector#each

removeFromArray

static public function removeFromArray(arr:Array, obj:Object):Void

removeAllFromArray

static public function removeAllFromArray(arr:Array, obj:Object):Void

removeAllBehindSomeIndex

static public function removeAllBehindSomeIndex(array:Array, index:Number):Void

indexInArray

static public function indexInArray(arr:Array, obj:Object):Number

cloneArray

static public function cloneArray(arr:Array):Array