com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class TaskUtils



  • public class TaskUtils
    extends Object

    Helper class which provides useful operations with tasks.

    • Method Detail

      • apply

        public static void apply(Task root,
                                 ITreeAlgorithm<Task> alg,
                                 int level)

        Applies specified algorithm to each task of a tree.

        Parameters:
        root - Root of the tree
        alg - Applied algorithm.
        level - Level of the root task.
      • filter

        public static Task filter(Task root,
                                  ICondition<Task> cond)

        Builds new tree of tasks which satisfy the condition.

        Parameters:
        root - Root of the tree.
        cond - Applied condition.
        Returns:
        Root of a new tree.
      • find

        public static Task find(Task root,
                                ICondition<Task> cond)

        Finds a task which satisfy the condition in a tree of tasks.

        Parameters:
        root - Root of the tree.
        cond - Applied condition.
        Returns:
        Task if task was found, otherwise null.
      • taskChildrenCount

        public static int taskChildrenCount(Task task)

        Recursively calculates a number of task's children tasks through all levels.

        Parameters:
        task - The task which children calculate.
        Returns:
        The number of children.