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

com.cookingfox.lapasse.api.event.logging.EventHandlerResult Maven / Gradle / Ivy

The newest version!
package com.cookingfox.lapasse.api.event.logging;

import com.cookingfox.lapasse.api.event.Event;
import com.cookingfox.lapasse.api.state.State;

/**
 * Wraps the event handler result.
 *
 * @param  The concrete type of the state object.
 */
public interface EventHandlerResult {

    /**
     * @return The event that was handled.
     */
    Event getEvent();

    /**
     * @return The new state that was returned by the event handler.
     */
    S getNewState();

}