com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class ArrayUtils



  • public class ArrayUtils
    extends Object

    Utility class for ArrayList processing.

    • 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.