Message Mismatch
Utility class for working with ValueMismatch
es for Message
values.
Functions
Link copied to clipboard
Creates
ValueMismatch
for the case of discovering a non-default value, when the default value was expected by a command.Link copied to clipboard
Creates a
ValueMismatch
for a command that wanted to clear a value, but discovered that the field already has the default value.Creates a
ValueMismatch
for a command that wanted to change a field value, but discovered that the field has the default value.Link copied to clipboard
public static ValueMismatch unexpectedValue(Message expected, Message actual, Message newValue, int version)
Creates
ValueMismatch
for the case of discovering a value different than by a command.Link copied to clipboard
Obtains actual value as a
Message
from the passed mismatch.Link copied to clipboard
Obtains expected value as a
Message
from the passed mismatch.Link copied to clipboard
Obtains new value as a
Message
from the passed mismatch.