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
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract B
doRun
(A a, CommandContext commandContext) Deprecated.run
(Optional<A> a, CommandContext commandContext) Deprecated.Methods inherited from class ch.tocco.nice2.persist.core.api.exec.tasks.PersistTaskBase
asListTask, compose, expand, expandFlat
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.PersistTask
andThenDo, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap