ArrayUtils

Inheritance: java.lang.Object

public class ArrayUtils

Utility class for ArrayList processing.

Methods

MethodDescription
<T>concat(Class<T> typeOfT, T[][] arrays)
apply(List array, IAlgorithm algorithm, int startIndex)Apply algorithm for each List element starting from specified position.
filter(List array, ICondition cond)Filter ArrayList elements by specified condition.
find(List array, ICondition cond)Find first occurrence of an ArrayList element which satisfy specified condition.

<T>concat(Class<T> typeOfT, T[][] arrays)

public static T[] <T>concat(Class<T> typeOfT, T[][] arrays)

Parameters:

ParameterTypeDescription
typeOfTjava.lang.Class<T>
arraysT[][]

Returns: T[]

apply(List array, IAlgorithm algorithm, int startIndex)

public static void apply(List array, IAlgorithm algorithm, int startIndex)

Apply algorithm for each List element starting from specified position.

Parameters:

ParameterTypeDescription
arrayjava.util.ListArrayList to process.
algorithmcom.aspose.tasks.IAlgorithmApplied algorithm.
startIndexintStart element position.

filter(List array, ICondition cond)

public static List filter(List array, ICondition cond)

Filter ArrayList elements by specified condition.

Parameters:

ParameterTypeDescription
arrayjava.util.ListList to process.
condcom.aspose.tasks.IConditionCondition used to filter List.

Returns: java.util.List - Filtered List.

find(List array, ICondition cond)

public static Object find(List array, ICondition cond)

Find first occurrence of an ArrayList element which satisfy specified condition.

Parameters:

ParameterTypeDescription
arrayjava.util.ListArrayList to process.
condcom.aspose.tasks.IConditionCondition used to find ArrayList element.

Returns: java.lang.Object - List element or null.