Class OptionalTask<A,B>
java.lang.Object
ch.tocco.nice2.persist.core.api.exec.tasks.PersistTaskBase<A,B>
ch.tocco.nice2.persist.core.api.exec.tasks.OptionalTask<A,B>
- All Implemented Interfaces:
PersistTask<A,B>
Deprecated.
use same named class in exec package
A task encapsulating the
null-Check allowing for better chaining
of tasks. The first task in a chain that returns null causes all
others to skip execution.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract BdoRun(A a, CommandContext commandContext) Deprecated.run(Optional<A> a, CommandContext commandContext) Deprecated.Methods inherited from class PersistTaskBase
asListTask, compose, expand, expandFlatMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PersistTask
andThenDo, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
OptionalTask
public OptionalTask()Deprecated.
-
-
Method Details
-
run
-
doRun
Deprecated.- Throws:
Exception
-