Boolean.compare

Compares two {@code bool} values. The value returned is identical to what would be returned by: <pre> Boolean.valueOf(x).compareTo(Boolean.valueOf(y)) </pre>

@param x the first {@code bool} to compare @param y the second {@code bool} to compare @return the value {@code 0} if {@code x == y}; a value less than {@code 0} if {@code !x && y}; and a value greater than {@code 0} if {@code x && !y}

class Boolean
static
int
compare
(
bool x
,
bool y
)

Meta