T
- the event class this handler can handle@FunctionalInterface
public interface EventHandler<T extends Event>
extends java.util.EventListener
Modifier and Type | Method and Description |
---|---|
void |
handle(T event)
Invoked when a specific event of the type for which this handler is
registered happens.
|
void handle(T event)
event
- the event which occurred