Given a array/list of booleans like:
Boolean a = true;
Boolean b = true;
Boolean c = false;
Boolean d = null;
I want to check if at least one of the booleans is true. So the sample shall count true=2 (a + b).
I tried guava style:
return Booleans.contains(
new boolean[] {a, b, c, d}, true);
But resulted in a NPE.
Can you maybe point to a simpler solution?