Package org.dmfs.jems2.procedure
Class Composite<T>
- java.lang.Object
-
- org.dmfs.jems2.procedure.Composite<T>
-
- All Implemented Interfaces:
FragileProcedure<T,java.lang.RuntimeException>,Procedure<T>
public final class Composite<T> extends java.lang.Object implements Procedure<T>
AProcedurecomposed of other procedures.Example
Prints "log message" to the console and to the log.new Composite(System.out::println, Logger::info).process("log message");
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocess(T arg)Executes the procedure with the given argument.
-