T - type of data fired with the eventpublic class Event<T> extends AbstractListenable<T>
listenersConsumerlistenersRunnable| Constructor and Description |
|---|
Event() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Consumer<T> |
createListenerToFire(Event<T> event)
Bridge between 2 events: create a listener that will fire the given event when called.
|
void |
fire(T event)
Fire the event (call the listeners).
|
addListener, hasListeners, removeListeneraddListener, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlisten, unlistenaddListener, listen, removeListener, unlistenCopyright © 2019. All rights reserved.