Class EntityListTask<A>
java.lang.Object
ch.tocco.nice2.persist.core.api.exec.tasks.PersistTaskBase<A,Iterable<Entity>>
ch.tocco.nice2.persist.core.api.exec.tasks.PersistListTask<A,Entity>
ch.tocco.nice2.persist.core.api.exec.tasks.EntityListTask<A>
- All Implemented Interfaces:
PersistTask<A,
Iterable<Entity>>
- Direct Known Subclasses:
FindLogEntryTask
Deprecated.
please use api from exec package
Special
PersistListTask
for tasks that create EntityList
s. It provides
methods that work with Entity
s.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal <V> PersistListTask
<A, V> flatMapEntity
(PersistTask<Entity, V> task) Deprecated.Same asPersistListTask.map(PersistTask)
but filters out absent values and unwraps the remaining optionals.final <V> PersistListTask
<A, Optional<V>> mapEntity
(PersistTask<Entity, V> task) Deprecated.Creates a composed task which applies the given task to each element of the result of this task and returns a list of all results.Methods inherited from class ch.tocco.nice2.persist.core.api.exec.tasks.PersistListTask
filterWith, flatMap, map
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, run, skipErrors, unwrap
-
Constructor Details
-
EntityListTask
public EntityListTask()Deprecated.
-
-
Method Details
-
mapEntity
Deprecated.Creates a composed task which applies the given task to each element of the result of this task and returns a list of all results.The returned task will never return null. If the listTask did not return a value or the entity list is empty an empty
List<Optional<T>>
is returned.- See Also:
-
flatMapEntity
Deprecated.Same asPersistListTask.map(PersistTask)
but filters out absent values and unwraps the remaining optionals.
-