FloatMismatch

public final class FloatMismatch

Utility class for working with float values in ValueMismatches.

Functions

Link copied to clipboard
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.
Link copied to clipboard
public static ValueMismatch expectedZero(float actual, float newValue, int version)
Creates ValueMismatch for the case of discovering not zero value, when a zero amount was expected by a command.
Link copied to clipboard
public static ValueMismatch of(float expected, float actual, float newValue, int version)
Creates a new instance of ValueMismatch with the passed values for a float attribute.
Link copied to clipboard
public static ValueMismatch unexpectedValue(float expected, float actual, float newValue, int version)
Creates ValueMismatch for the case of discovering a value different than by a command.
Link copied to clipboard
public static float unpackActual(ValueMismatch mismatch)
Obtains actual float value from the passed mismatch.
Link copied to clipboard
public static float unpackExpected(ValueMismatch mismatch)
Obtains expected float value from the passed mismatch.
Link copied to clipboard
public static float unpackNewValue(ValueMismatch mismatch)
Obtains new float value from the passed mismatch.