precondition abstract method

bool precondition(
  1. CommandContext<State, System> context,
  2. State state
)

Returns true if the command can be run on the given state.

Implementation

bool precondition(CommandContext<State, System> context, State state);