Class PersistTaskBase<A,T>
java.lang.Object
ch.tocco.nice2.persist.core.api.exec.tasks.PersistTaskBase<A,T>
- All Implemented Interfaces:
PersistTask<A,
T>
- Direct Known Subclasses:
LookupTask
,OptionalTask
,PersistListTask
Deprecated.
use the same named class from exec package
Implementations of
PersistTask
should extend this class.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal PersistListTask
<A, T> Deprecated.Lifts this task into one that returns this result in a single element list to allow to be combined with other (list)tasks.final <B> PersistTaskBase
<A, B> compose
(PersistTask<T, B> task) Deprecated.Creates a task that is the composition of this andtask
.final PersistListTask
<Iterable<A>, Optional<T>> expand
(boolean collectResults) Deprecated.Lifts this task to a task that accepts a list of arguments applying those in order to this task and returns the collected results in a list if `collectResults` is set to `true`.final PersistListTask
<Iterable<A>, T> expandFlat
(boolean collectResults) Deprecated.Lifts this task to a task that accepts a list of arguments applying those in order to this task and returns the collected results in a list if `collectResults` is set to `true`.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, run, skipErrors, unwrap
-
Constructor Details
-
PersistTaskBase
public PersistTaskBase()Deprecated.
-
-
Method Details
-
compose
Deprecated.Creates a task that is the composition of this andtask
. That meanstask
is executed with the result of this as its argument.- Specified by:
compose
in interfacePersistTask<A,
T>
-
expand
Deprecated.Lifts this task to a task that accepts a list of arguments applying those in order to this task and returns the collected results in a list if `collectResults` is set to `true`. Otherwise the returned list will be empty. This can be further controlled via mode keyKeys.COLLECTMODE
-
expandFlat
Deprecated.Lifts this task to a task that accepts a list of arguments applying those in order to this task and returns the collected results in a list if `collectResults` is set to `true`. Otherwise the returned list will be empty. This can be further controlled via mode keyKeys.COLLECTMODE
All `null` results are filtered out. -
asListTask
Deprecated.Lifts this task into one that returns this result in a single element list to allow to be combined with other (list)tasks.
-