Package io.hektor.fsm
Interface Guard<E,C extends Context,D extends Data>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
-
Method Details
-
test
Evaluates this predicate on the given arguments.- Parameters:
event- the incoming event that triggers this guard associated with a particularFSM.context- theContextassociated with theFSMfor which thisGuardis associated with.data- theDatabag associated with theFSMfor which thisGuardis associated with.- Returns:
trueif the input arguments matches the predicate, otherwisefalse
-