S - The concrete type of the state object.E - The concrete event type that this handler will handle.public interface EventHandler<S extends State,E extends Event> extends MessageHandler<E>
| Modifier and Type | Method and Description |
|---|---|
S |
handle(S previousState,
E event)
Returns the previous state or creates a new state object by applying the event to the
previous state.
|
Copyright © 2016 Cooking Fox. All rights reserved.