net.simplace.core.jexl.ArrayBuilder

To be used in Jexl engine like array:Double(size, default) array:Integer(size, default) array:Char(size, default) array:Double(size) array:Integer(size) array:Char(size) array:clone(sourceArray) array:zip(keyArray, valueArray) array:unzipKeys(sourceArray) array:unzipValues(sourceArray) array:calc(sourceArray, algorithm[+-*\/^] secondPartner) array:sum(sourceArray) array:avg(sourceArray) array:min(sourceArray) array:max(sourceArray) array:sum(sourceArray, startIndex[1...n], endIndex[1...n]) array:avg(sourceArray, startIndex[1...n], endIndex[1...n]) array:min(sourceArray, startIndex[1...n], endIndex[1...n]) array:max(sourceArray, startIndex[1...n], endIndex[1...n])


public final class ArrayBuilder {
// Public Constructors
public ArrayBuilder();


// Class Methods
public static Object clone(Object aSourceArray);

To be used in Jexl engine like arrays:clone(sourceArray)
returns a cloned Array (same type same size)
public static Double[] Double(int aSize);

To be used in Jexl engine like arrays:Double(size)
returns Double[]
public static Integer[] Integer(int aSize);

To be used in Jexl engine like arrays:Integer(size)
returns Integer[]
public static String[] Char(int aSize);

To be used in Jexl engine like arrays:String(size)
returns String[]
public static Double[] Double(int aSize, Double aDefault);

To be used in Jexl engine like arrays:Double(size, default)
returns Double[]
public static Integer[] Integer(int aSize, Integer aDefault);

To be used in Jexl engine like arrays:Integer(size, default)
returns Integer[]
public static String[] Char(int aSize, String aDefault);

To be used in Jexl engine like arrays:String(size, default)
returns String[]
public static Object unzipKeys(Object aSourceArray);

public static Object unzipValues(Object aSourceArray);

public static Object zip(Object[] aKeysSourceArray, Object[]
aValuesSourceArray);

public static Object calc(Object aFirstArray, String aRule, Object
aSecondPartner);

To be used in Jexl engine like arrays:calc(firstArray,"[*+-/^]",secondPartner[arrayOrNumber])
returns a Calculated Array (same type same size)
public static Object sum(Object anArray);

To be used in Jexl engine like arrays:sum(firstArray)
returns a Calculated Value
public static Object min(Object anArray);

To be used in Jexl engine like arrays:max(firstArray)
returns a Calculated Value
public static Object max(Object anArray);

To be used in Jexl engine like arrays:max(firstArray)
returns a Calculated Value
public static Object avg(Object anArray);

To be used in Jexl engine like arrays:avg(firstArray)
returns a Calculated Value
public static Object sum(Object anArray, Integer aStartIndex, Integer
aEndIndex);

To be used in Jexl engine like arrays:sum(firstArray,startIndex[1..n], endIndex[1..n])
returns a Calculated Array (same type same size)
public static Object min(Object anArray, Integer aStartIndex, Integer
aEndIndex);

To be used in Jexl engine like arrays:min(firstArray,startIndex[1..n], endIndex[1..n])
returns a Calculated Array (same type same size)
public static Object max(Object anArray, Integer aStartIndex, Integer
aEndIndex);

To be used in Jexl engine like arrays:max(firstArray,startIndex[1..n], endIndex[1..n])
returns a Calculated Array (same type same size)
public static Object avg(Object anArray, Integer aStartIndex, Integer
aEndIndex);

To be used in Jexl engine like arrays:avg(firstArray,startIndex[1..n], endIndex[1..n])
returns a Calculated Array (same type same size)


}