Class Tasks


  • public final class Tasks
    extends Object
    A helper class for building tasks
    • Method Detail

      • task

        public static <T extends BlockingTask,​Y extends TaskBuilder<T>> Y task​(Supplier<Y> taskBuilderSupplier)
        A generic builder for task builders
        Type Parameters:
        T - the type of tasks that the builder builds
        Y - the type of the task builder to provide
        Parameters:
        taskBuilderSupplier - A supplier of tasks (usually a parameterless constructor in the form of Builder::new)
        Returns:
        A new instance of the given task builder