Builds and returns a handler from the appended states.
Builds and returns a handler from the appended states. The returned EventHandler will throw a scala.MatchError if applied to an event that has no defined case.
The builder is reset to empty after build has been called.
Match any event
Match any event
Builds and returns the handler since this will not let through any states to subsequent match statements
Match any event which is an instance of E
or a subtype of E
Match any event which is an instance of E
or a subtype of E
Throws java.lang.IllegalArgumentException
if eventClass
is not a subtype of the root Event
this builder was created with