Package org.kinotic.continuum.grind.api
Class Tasks
java.lang.Object
org.kinotic.continuum.grind.api.Tasks
Created by Navid Mitchell on 3/24/20
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <R> Task<R> fromCallable(String description, Callable<R> instance) static <R> Task<R> fromCallable(Callable<R> instance) fromRunnable(Runnable instance) fromRunnable(String description, Runnable instance) static <R> Task<R> fromSupplier(String description, Supplier<R> instance) static <R> Task<R> fromSupplier(Supplier<R> instance) static <T> Task<T> static <T> Task<T> fromValue(T value) static <T> Task<T> noop()Special type of task that allows a step to be skipped if needed.static <T> Task<T> Special type of task that allows a step to be skipped if needed.static <T,R> Task <R> transformResult(Task<T> from, Function<T, R> transformer)
-
Constructor Details
-
Tasks
public Tasks()
-
-
Method Details
-
fromCallable
-
fromCallable
-
fromExec
-
fromSupplier
-
fromSupplier
-
fromValue
-
fromValue
-
fromRunnable
-
fromRunnable
-
noop
Special type of task that allows a step to be skipped if needed. This is useful if aSupplier<Task>needs to only supply a task under certain conditions- Parameters:
description- of why the task is a noop task.- Returns:
- the noop task
-
noop
Special type of task that allows a step to be skipped if needed. This is useful if aSupplier<Task>needs to only supply a task under certain conditions- Returns:
- the noop task
-
transformResult
-