Name | Arguments | Description |
append add
| elem ...
|
Adds all the elements at the end of this array.
|
appendArray
| anArray ...
|
Adds all the elements in all the arrays at the end of this array.
|
average avg
| |
Returns the average of all the numbers in this array.
|
clear
| |
Clears all the elements in this array.
|
concat toCsv
| separator valueDecorator start length
|
Returns a string that is a concatenation of all the elements, separated by separator.
If no separator specified, default use ','.
The optoinal valueDecorator function takes one parameter and returns a string.
The optional start specifies where to start, and the optional length
specifies how many elements to concatenate, up to the end of the array.
|
convert
| convertFunction locally
|
Converts all the elements with the the convertFunction. If locally
is true , these elements are stored locally and returns self; otherwise, the filtered elements
are returned in a new array.
|
exists
| value comparatorFunction
|
Returns true if a match of value in this array is found, based on the
comparatorFunction, or -1 if not found. If no comparatorFunction
specified, use the "natural" order.
|
filter
| filterFunction locally
|
Filters the elements by the filterFunction. If locally is true ,
these elements are stored locally and returns self; otherwise, the filtered elements are returned
in a new array.
|
first
| |
Returns the first element, or null if not elements.
|
indexOf
| value comparatorFunction
|
Returns the index of the first match of value in this array, based on the
comparatorFunction, or -1 if not found. If no comparatorFunction
specified, use the "natural" order.
|
insert
| elem index
|
Inserts the elem at index; if index
is not specified, insert at 0.
|
last
| |
Returns the last element, or null if not elements.
|
lastIndex
| |
Returns the index of the last element, which is size - 1.
|
lastIndexOf
| value comparatorFunction
|
Returns the index of the last match of value in this array, based on the
comparatorFunction, or -1 if not found. If no comparatorFunction
specified, use the "natural" order.
|
loadAsLine
| fileName
|
Load all lines in the text file as elements.
|
max
| |
Returns the biggest of all the numbers in this array. It is an integer if all
the elements are integers; otherwise it is float.
|
min
| |
Returns the smallest of all the numbers in this array. It is an integer if all
the elements are integers; otherwise it is float.
|
prepand
| elem ...
|
Inserts all the new elements at the beginning of this array.
|
prependArray
| anArray ...
|
Inserts all the elements in all the arrays at the beginning of this array.
|
range
| |
Returns an array of two values: the smallest and biggest. They are integers if all
the elements are integers; otherwise they are float.
|
remove
| index
|
Removes the element at index, and returns the removed element.
The following elements are moved up to fill the empty spot.
|
reverse
| |
Reverse all the elements in this array and returns self.
|
saveAsLine
| fileName
|
Write all elements into a file as lines. If values are strings containing newlines, the values will be confused.
|
setSize
| newSize fillValue
|
If newSize is greater than the current size,
enlarge to that by filling new elements with fillValue.
If newSize is less than the current size, shrink to that size.
|
size length
| |
Returns the size of this array.
|
sort
| comparatorFunction
|
Sorts this array locally and returns self. If comparatorFunction is
not specified, use the "natural" order of the elements.
|
sortAsDate
| |
Sorts this array as dates locally and returns self.
|
sortAsNumber
| |
Sorts this array as numbers locally and returns self.
|
sortAsString
| |
Sorts this array as strings locally and returns self.
|
subarray
| startIndex endIndex
|
Returns a sub-array of this, starting at startindex inclusive to
endIndex exclusive. If endIndex is not specified or
beyond range, the end of array is used.
|
sum
| |
Returns the sum of all the numbers in this array. The sum is an integer if all
the elements are integers; otherwise sum is float.
|
toBooleanArray
| |
Returns a Java array of boolean[] .
|
toBooleanObjectArray
| |
Returns a Java array of java.lang.Boolean[] .
|
toByteArray
| |
Returns a Java array of byte[] .
|
toByteObjectArray
| |
Returns a Java array of java.lang.Byte[] .
|
toCharArray
| |
Returns a Java array of char[] .
|
toCharObjectArray
| |
Returns a Java array of java.lang.Character[] .
|
toDoubleArray
| |
Returns a Java array of double[] .
|
toDoubleObjectArray
| |
Returns a Java array of java.lang.Double[] .
|
toFixedPositionString
| len ...
|
Returns a string of the concatenation of all the elements, each with specified length. That is,
each element is at a fixed position in the resultant string. (This method applies to Java arrays
and java.util.List instances.)
|
toFloatArray
| |
Returns a Java array of float[] .
|
toFloatObjectArray
| |
Returns a Java array of java.lang.Float[] .
|
toIntArray
| |
Returns a Java array of int[] .
|
toIntObjectArray
| |
Returns a Java array of java.lang.Integer[] .
|
toLongArray
| |
Returns a Java array of long[] .
|
toLongObjectArray
| |
Returns a Java array of java.lang.Long[] .
|
toObjectArray
| |
Returns a Java array of java.lang.Object[] .
|
toShortArray
| |
Returns a Java array of short[] .
|
toShortObjectArray
| |
Returns a Java array of java.lang.Short[] .
|
toStringArray
| |
Returns a Java array of java.lang.String[] .
|