Interface ImmutableRoot.Transition<S,E>

Enclosing class:
ImmutableRoot<T>
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 static interface ImmutableRoot.Transition<S,E>
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(S state, E event)
    Applies an event to the replay state and returns the resulting state; failures are passed to the replay failure policy.
  • Method Details

    • apply

      S apply(S state, E event) throws Throwable
      Applies an event to the replay state and returns the resulting state; failures are passed to the replay failure policy.
      Throws:
      Throwable