eu.lucaventuri.fibry.fsm.TransitionState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fibry Show documentation
Show all versions of fibry Show documentation
The first Java Actor System supporting fibers from Project Loom
package eu.lucaventuri.fibry.fsm;
import java.util.function.Consumer;
class TransitionState>, I> {
final E event;
final State targetState;
TransitionState(E event, State targetState) {
this.event = event;
this.targetState = targetState;
}
TransitionState withState(State newState) {
return new TransitionState<>(event, newState);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy