of

public static ValueMismatch of(int expected, int actual, int newValue, int version)

Creates a new instance of ValueMismatch with the passed values for an integer attribute.