Package org.dmfs.jems2.procedure
Class Composite<T>
java.lang.Object
org.dmfs.jems2.procedure.Composite<T>
- All Implemented Interfaces:
FragileProcedure<T,,RuntimeException> Procedure<T>
A
Procedure composed of other procedures.
Example
new Composite(System.out::println, Logger::info).process("log message");
Prints "log message" to the console and to the log.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Composite
-
Composite
-
-
Method Details
-
process
Description copied from interface:ProcedureExecutes the procedure with the given argument.- Specified by:
processin interfaceFragileProcedure<T,RuntimeException> - Specified by:
processin interfaceProcedure<T>
-