T - typepublic class MultiEventHandler<T> extends Object implements EventHandler<T>
| Constructor and Description |
|---|
MultiEventHandler(Map<Class<? extends T>,EventHandler<? extends T>> map)
Constructs a multi-event handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onNext(T event)
Invokes a specific handler for the event class type if it exists.
|
public MultiEventHandler(Map<Class<? extends T>,EventHandler<? extends T>> map)
map - a map of class types to event handlerspublic void onNext(T event)
onNext in interface EventHandler<T>event - an eventWakeRuntimeExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.