There are no dependencies for this project. It is a standalone project that does not depend on any other jars.
There are no modules declared in this project.
Install
implementation("tech.bam:kstate-jvm:VERSION")
Snapshot releases
repositories {
maven { url "https://oss.sonatype.org/content/repositories/snapshots" } // Add this line
}
// ...
implementation("tech.bam:kstate-jvm:VERSION-SNAPSHOT")
Usage
Machine
sealed class TrafficLightState {
object GREEN : TrafficLightState()
object YELLOW : TrafficLightState()
object RED : TrafficLightState()
}
val myMachine = machine<TrafficLightState> {
state(TrafficLightState.GREEN) {}
state(TrafficLightState.YELLOW) {}
state(TrafficLightState.RED) {}
}
Developed with IntelliJ IDEA