com.cookingfox.lapasse.api.state.observer.StateChanged Maven / Gradle / Ivy
package com.cookingfox.lapasse.api.state.observer;
import com.cookingfox.lapasse.api.event.Event;
import com.cookingfox.lapasse.api.state.State;
/**
* Wraps the state change properties: new state and the event that caused the state change.
*
* @param The concrete type of the state object.
*/
public interface StateChanged {
/**
* @return The event that caused the state change.
*/
Event getEvent();
/**
* @return The new state.
*/
S getState();
}