@FunctionalInterface public interface StateListener extends EventListener, BiFunction<State,State,Void>
State. This is a
FunctionalInterface through BiFunction over
State parameter.| Modifier and Type | Method and Description |
|---|---|
default Void |
apply(State t,
State u) |
void |
stateChanged(State oldState,
State newState)
Published a change of
State to the listener
implementation. |
andThenvoid stateChanged(State oldState, State newState) throws Exception
State to the listener
implementation.oldState - the previous statenewState - the current state effective nowException - if the listener cannot accept such a
change and decides to fail this state changeCopyright © 2015 SDL Fredhopper. All rights reserved.