2022-07-07 02:15:12 +03:00
|
|
|
package me.bvn13.fsm;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* State processor
|
|
|
|
* @param <T> the type of FSM inherited class
|
|
|
|
* @param <E> the type of Events
|
|
|
|
*/
|
|
|
|
@FunctionalInterface
|
|
|
|
public interface StateProcessor<T extends Fsm, E> {
|
|
|
|
|
2022-07-11 15:49:55 +03:00
|
|
|
void process(T fsm, E event);
|
2022-07-07 02:15:12 +03:00
|
|
|
|
|
|
|
}
|