Class Batch<T>

java.lang.Object
org.dmfs.jems2.procedure.Batch<T>
All Implemented Interfaces:
FragileProcedure<Iterable<? extends T>,RuntimeException>, Procedure<Iterable<? extends T>>

public final class Batch<T> extends Object implements Procedure<Iterable<? extends T>>
A Procedure, which processes the elements of an Iterable using another Procedure.

Example


 new Batch(System.out::println).process(new Seq<>("one", "two", "three"));
 
Calls the Function System.out.println(String) with each of the three Strings.