Package io.hektor.fsm

Interface Action<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.

@FunctionalInterface public interface Action<E,C extends Context,D extends Data>
Represents an action to be performed in the context of a FSM. This is really just a specialization of the generic BiConsumer that takes three arguments instead of two and also locks down the upper bound of two of the arguments.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(E event, C context, D data)
    Performs this operation on the given arguments.
  • Method Details

    • accept

      void accept(E event, C context, D data)
      Performs this operation on the given arguments.
      Parameters:
      event - the incoming event that triggers this action associated with a particular FSM.
      context - the Context associated with the FSM for which this Action is associated with.
      data - the Data bag associated with the FSM for which this Action is associated with.