This commit is contained in:
Tim Tersch
2020-08-27 10:59:56 +02:00
parent 24bdbc7e01
commit 18a1201ec5

View File

@@ -173,6 +173,14 @@ public class Arrays {
* Für ein leeres Array wird <code>false<code> zurück gegeben. * Für ein leeres Array wird <code>false<code> zurück gegeben.
*/ */
public boolean and( boolean[] pArray ) { public boolean and( boolean[] pArray ) {
if (pArray == null || pArray.length == 0) {
return false;
}
for (boolean b : pArray) {
if (!b) {
return false;
}
}
return true; return true;
} }