- Type Parameters:
T - the kind of message that is the input for this system reactions
- All Implemented Interfaces:
- java.util.function.Function<T,java.lang.Object>
public class SystemReaction<T>
extends java.lang.Object
implements java.util.function.Function<T,java.lang.Object>
An instance of this class represents a system reaction as a function, even if it has been specified as
a Consumer or Runnable by the user of the library. This approach simplifies development of the rest of the API.
An instance of this class also allows access to the original object (i.e. Consumer, Runnable, or Function)
specified via .system(..) or .systemPublish() by the user of the library.
That element is called modelObject.