Interface TypedTrigger<T>
- Type Parameters:
T- the type of the argument
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Typed variant of the
Trigger interface for representing an action that can be activated
at a later point in the program with a specific argument supplied to a function to be executed.
This interface may resemble a Consumer<T> from java.util.function but its
intent combines the latter with a Runnable in nature because it does not have a return
value, and it is designed to run (activate) a statement multiple times.
- Author:
- Yoham Gabriel B.
- See Also:
-
Method Summary
-
Method Details
-
activate
Supplies the given argument to the trigger function and activates it.- Parameters:
arg- the argument to pass to the trigger
-