E - event typeT - super typeprotected static class EventBus.SingleEventListener<E extends T,T> extends java.lang.Object implements EventListener<T>
| Constructor and Description |
|---|
SingleEventListener(EventListener<E> wrappedListener,
java.lang.Class<E> eventClass)
Constructs a new single typed Event listener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onEvent(T event) |
public SingleEventListener(EventListener<E> wrappedListener, java.lang.Class<E> eventClass)
wrappedListener - The listener which gets called when the event
was accepted.eventClass - The event to listen for, Any posted event that is
an instance of said class will get passed through to the
wrapped listener instance.public void onEvent(T event)
onEvent in interface EventListener<T>