T
- type of the event information provided during event
invocation.public interface Event<T extends EventInfo>
Modifier and Type | Method and Description |
---|---|
void |
subscribe(EventHandler<T> eventHandler)
Subscribe for the event to be notified if it is raised.
|
boolean |
unsubscribe(EventHandler<T> eventHandler)
Unsubscribe from the handling the invocation of this event.
|
void subscribe(EventHandler<T> eventHandler)
eventHandler
- instance of the event handler.boolean unsubscribe(EventHandler<T> eventHandler)
eventHandler
- instance of the event handler.Copyright © 2020. All rights reserved.