All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cookingfox.lapasse.api.state.observer.StateChanged Maven / Gradle / Ivy

There is a newer version: 0.5.6
Show newest version
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();

}