Add Callback Event Handling #26
@ -9,7 +9,7 @@ import java.util.function.Consumer;
|
||||
* @author Kai S. K. Engelbart
|
||||
* @since 1.2.0
|
||||
*/
|
||||
public class CallbackEventHandler implements EventHandler {
|
||||
public final class CallbackEventHandler implements EventHandler {
|
||||
|
||||
private final Class<?> eventType;
|
||||
private final Consumer<Object> callback;
|
||||
delvh marked this conversation as resolved
|
||||
|
Loading…
Reference in New Issue
Block a user
What about Consumer ?
This wouldn't work, as `callback.accept(event)' would complain about an incompatible argument type.