T - the type of the event that can be handled by the consumer and the type that
can be handled by the delegatepublic class EventConsumer<T> extends Object implements Consumer<Event<T>>
Consumer implementation that pulls the data from an Event and
passes it to a delegate Consumer.| Constructor and Description |
|---|
EventConsumer(Consumer<T> delegate)
Creates a new
EventConsumer that will pass event data to the given delegate. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Event<T> ev)
Execute the logic of the action, accepting the given parameter.
|
Copyright © 2016. All rights reserved.