Package com.aspose.tasks
Class ArrayUtils
- java.lang.Object
-
- com.aspose.tasks.ArrayUtils
-
public class ArrayUtils extends Object
Utility class for ArrayList processing.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
apply(List array, IAlgorithm algorithm, int startIndex)
Apply algorithm for each List element starting from specified position.static <T> T[]
concat(Class<T> typeOfT, T[]... arrays)
static List
filter(List array, ICondition cond)
Filter ArrayList elements by specified condition.static Object
find(List array, ICondition cond)
Find first occurrence of an ArrayList element which satisfy specified condition.
-
-
-
Method Detail
-
concat
public static <T> T[] concat(Class<T> typeOfT, T[]... arrays)
-
apply
public static void apply(List array, IAlgorithm algorithm, int startIndex)
Apply algorithm for each List element starting from specified position.
- Parameters:
array
- ArrayList to process.algorithm
- Applied algorithm.startIndex
- Start element position.
-
filter
public static List filter(List array, ICondition cond)
Filter ArrayList elements by specified condition.
- Parameters:
array
- List to process.cond
- Condition used to filter List.- Returns:
- Filtered List.
-
find
public static Object find(List array, ICondition cond)
Find first occurrence of an ArrayList element which satisfy specified condition.
- Parameters:
array
- ArrayList to process.cond
- Condition used to find ArrayList element.- Returns:
- List element or null.
-
-