public class Exclusives
extends java.lang.Object
Constructor and Description |
---|
Exclusives() |
Modifier and Type | Method and Description |
---|---|
static boolean |
atMostOneOf(boolean... values)
Return true when 0 or 1 boolean are true, false otherwise.
|
static int |
numberOfTrues(boolean... bs) |
static boolean |
strictlyMoreThanOne(boolean... bs)
Return true when 2 or more booleans are true, false otherwise.
|
public static boolean atMostOneOf(boolean... values)
public static boolean strictlyMoreThanOne(boolean... bs)
public static int numberOfTrues(boolean... bs)