Skip to content

Remove restriction from event types.

Compare
Choose a tag to compare
@corneil corneil released this 05 Sep 20:27

Previously state machine events had to be an enum class.
This restriction has now been removed.
The constructor of the builder does not require a set of valid events of the specific type.
The events will be stored in sets or be used as keys in maps, they require correct implementations of equals and hashCode. Enums, primitive types and data classes are all good candidates.

The documentation has been updated with a packet reader example.