expectedNotDefault

protected ValueMismatch expectedNotDefault(Message expected)

Creates a ValueMismatch for a command that wanted to clear a value, but discovered that the field already has the default value.

Return

new ValueMismatch instance

Parameters

expected

the value of the field that the command wanted to clear


protected ValueMismatch expectedNotDefault(Message expected, Message newValue)

Creates a ValueMismatch for a command that wanted to change a field value, but discovered that the field has the default value.

Return

new ValueMismatch instance

Parameters

expected

the value expected by the command

newValue

the value the command wanted to set