Class PersistListTask<A,T>
java.lang.Object
ch.tocco.nice2.persist.core.api.exec.tasks.PersistTaskBase<A,Iterable<T>>
ch.tocco.nice2.persist.core.api.exec.tasks.PersistListTask<A,T>
- All Implemented Interfaces:
PersistTask<A,
Iterable<T>>
- Direct Known Subclasses:
EntityListTask
,FilterTask
Deprecated.
use PersistTaskIterable from exec package
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal PersistListTask
<A, T> filterWith
(PersistTask<T, Boolean> predicate) Deprecated.Creates a new task that will execute this task and filters the resulting list by applying the givenpredicate
task.final <V> PersistListTask
<A, V> flatMap
(PersistTask<T, V> task) Deprecated.Same asmap(PersistTask)
but filters out absent values and unwraps the remaining optionals.final <V> PersistListTask
<A, Optional<V>> map
(PersistTask<T, 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.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
-
PersistListTask
public PersistListTask()Deprecated.
-
-
Method Details
-
map
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:
-
flatMap
Deprecated.Same asmap(PersistTask)
but filters out absent values and unwraps the remaining optionals. -
filterWith
Deprecated.Creates a new task that will execute this task and filters the resulting list by applying the givenpredicate
task. Note, that the samepredicate
task is applied to each element, thus it must be stateless!
-