expectedNonZero

public static ValueMismatch expectedNonZero(float expected, float newValue, int version)

Creates ValueMismatch for the case of discovering zero value, when a non zero amount was expected by a command.

Return

new ValueMismatch instance

Parameters

expected

the value of the field that the command wanted to clear

newValue

the new value requested in the command

version

the version of the entity in which the mismatch is discovered