Class ExpandedTask<A,B>
java.lang.Object
ch.tocco.nice2.persist.core.api.exec.ExpandedTask<A,B>
- All Implemented Interfaces:
PersistTask<Iterable<A>, Iterable<B>>, PersistTaskIterable<Iterable<A>, B>
Takes multiple inputs and runs its inner task with each. The results are
collected in a list. Nulls are by default ignored, but can be included
via
withNulls()-
Constructor Summary
ConstructorsConstructorDescriptionExpandedTask(PersistTask<A, B> task) ExpandedTask(PersistTask<A, B> task, @Nullable CollectMode collectMode) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrorsMethods inherited from interface PersistTaskIterable
filter, find, flatMap, forEach, get, get, get, getOnlyElement, getOnlyElement, getOnlyElement, map
-
Constructor Details
-
ExpandedTask
-
ExpandedTask
-
-
Method Details
-
run
-
unwrap
Description copied from interface:PersistTaskIf this task is composed of inner tasks, you must give access to the inner tasks by overriding this method.- Specified by:
unwrapin interfacePersistTask<A,B> - Returns:
- all inner tasks.
-
withNulls
-
toString
-