E - the event type.public interface CorrespondingEventsFunction<E>
Function but ensures a single event
type in the generic and tightens the possible exception thrown to OutsideScopeException.| Modifier and Type | Method and Description |
|---|---|
E |
apply(E event)
Given an event
event, returns the next corresponding event that this lifecycle should
dispose on. |
E apply(E event) throws OutsideScopeException
event, returns the next corresponding event that this lifecycle should
dispose on.event - the source or start event.OutsideScopeException - if the lifecycle exceeds its scope boundaries.