Packageverlocity.utils
Classpublic final class ArrayUtil
InheritanceArrayUtil Inheritance Object



Public Methods
 MethodDefined By
  
Contains(aArray:Array, obj:Object):Boolean
[static] Returns if an object exists in an array.
ArrayUtil
  
Empty(aArray:Array):void
[static] Completely removes all contents of an array and disposes all memory
ArrayUtil
  
Equals(aArray1:Array, aArray2:Array):Boolean
[static] Returns if two arrays are equal to themselves.
ArrayUtil
  
GetIndex(aArray:Array, obj:Object):int
[static] Finds and returns the index of an object in array.
ArrayUtil
  
IsInRange(aArray:Array, i:int):Boolean
[static] Returns if an index is within range of the array
ArrayUtil
  
LastIndex(aArray:Array):int
[static] Returns the last index of an array.
ArrayUtil
Method Detail
Contains()method
public static function Contains(aArray:Array, obj:Object):Boolean

Returns if an object exists in an array.

Parameters

aArray:Array — The array to search through
 
obj:Object — The object to find if it exists

Returns
Boolean
Empty()method 
public static function Empty(aArray:Array):void

Completely removes all contents of an array and disposes all memory

Parameters

aArray:Array — The array to empty

Equals()method 
public static function Equals(aArray1:Array, aArray2:Array):Boolean

Returns if two arrays are equal to themselves.

Parameters

aArray1:Array — The first array
 
aArray2:Array — The second array

Returns
Boolean
GetIndex()method 
public static function GetIndex(aArray:Array, obj:Object):int

Finds and returns the index of an object in array. If not found, returns -1

Parameters

aArray:Array — The array to search through
 
obj:Object — The object to return index of

Returns
int
IsInRange()method 
public static function IsInRange(aArray:Array, i:int):Boolean

Returns if an index is within range of the array

Parameters

aArray:Array — The array
 
i:int — The index

Returns
Boolean
LastIndex()method 
public static function LastIndex(aArray:Array):int

Returns the last index of an array.

Parameters

aArray:Array — The array

Returns
int