Skip to content

Commit

Permalink
evolve is nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
johanhaleby committed Nov 2, 2023
1 parent 017fd67 commit d2cfe47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public interface Decider<C, S, E> {
@NotNull
List<E> decide(@NotNull C command, @Nullable S state);

@NotNull S evolve(@Nullable S state, @NotNull E event);
@Nullable S evolve(@Nullable S state, @NotNull E event);

default boolean isTerminal(@Nullable S state) {
return false;
Expand Down

0 comments on commit d2cfe47

Please sign in to comment.