Generated by JsDoc Toolkit 2.3.2 on Sun Jun 13 2010 17:28:18 GMT+0200 (CEST)
HTML template: Codeview

Namespace calitha.collections.arrays


Defined in: arrays.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
The arrays namespace contains a vaiety of convencience methods for arrays.
Method Summary
Method Attributes Method Name and Description
<static>  
calitha.collections.arrays.copy(array)
Copies an array
<static>  
calitha.collections.arrays.copyRange(array, fromIndex, toIndex, targetIndex)
Copies a range of elements in an array to another index
<static>  
calitha.collections.arrays.copyRangeToArray(source, fromIndex, toIndex, dest, targetIndex)
Copies a range of elements from one array to another
<static>  
calitha.collections.arrays.insertRangeToArray(source, fromIndex, toIndex, dest, targetIndex)
Inserts a range of elements in another array
<static>  
calitha.collections.arrays.sort(array, comparator)
Sorts an array according to the specified comparator object or function.
Namespace Detail
calitha.collections.arrays
The arrays namespace contains a vaiety of convencience methods for arrays.
Method Detail
<static> {Array} calitha.collections.arrays.copy(array)
Copies an array
Parameters:
{Array} array
array
Returns:
{Array} new array
<static> calitha.collections.arrays.copyRange(array, fromIndex, toIndex, targetIndex)
Copies a range of elements in an array to another index
Parameters:
{Array} array
array
{Number} fromIndex
from index
{Number} toIndex
to index (not inclusive)
{Number} targetIndex
target index
<static> calitha.collections.arrays.copyRangeToArray(source, fromIndex, toIndex, dest, targetIndex)
Copies a range of elements from one array to another
Parameters:
{Array} source
source array
{Number} fromIndex
from index
{Number} toIndex
to index (not inclusive)
{Array} dest
destination array
{Number} targetIndex
target index in the destination array
<static> calitha.collections.arrays.insertRangeToArray(source, fromIndex, toIndex, dest, targetIndex)
Inserts a range of elements in another array
Parameters:
{Array} source
source array
{Number} fromIndex
from index
{Number} toIndex
to index (not inclusive)
{Array} dest
destination array
{Number} targetIndex
target index in the destination array
<static> calitha.collections.arrays.sort(array, comparator)
Sorts an array according to the specified comparator object or function. If no comparator is specified the natural ordering is used, which means that the elements must be IComparable.
Parameters:
{Array} array
array
{(calitha.collections.IComparator|Function)?} comparator
optional comparator