BooleanMismatch

public final class BooleanMismatch

Utility class for working with boolean values in ValueMismatches.

Functions

Link copied to clipboard
public static ValueMismatch expectedFalse(int version)
Creates ValueMismatch for the case when command finds true value instead of false.
Link copied to clipboard
public static ValueMismatch expectedTrue(int version)
Creates ValueMismatch for the case when command finds false value instead of true.
Link copied to clipboard
public static boolean unpackActual(ValueMismatch mismatch)
Obtains actual boolean value from the passed mismatch.
Link copied to clipboard
public static boolean unpackExpected(ValueMismatch mismatch)
Obtains expected boolean value from the passed mismatch.
Link copied to clipboard
public static boolean unpackNewValue(ValueMismatch mismatch)
Obtains new boolean value from the passed mismatch.