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 public abstract class PersistListTask<A,T> extends PersistTaskBase<A,Iterable<T>>
Deprecated.
use PersistTaskIterable from exec package
  • Constructor Details

    • PersistListTask

      public PersistListTask()
      Deprecated.
  • Method Details

    • map

      public 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.

      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

      public final <V> PersistListTask<A,V> flatMap(PersistTask<T,V> task)
      Deprecated.
      Same as map(PersistTask) but filters out absent values and unwraps the remaining optionals.
    • filterWith

      public final 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 given predicate task. Note, that the same predicate task is applied to each element, thus it must be stateless!