Merge remote-tracking branch 'upstream/master' into wip/6.0

This commit is contained in:
Andrea Boriero 2021-02-25 10:15:33 +01:00
commit 0fafae4624
1 changed files with 9 additions and 0 deletions

View File

@ -238,6 +238,15 @@ public final class ArrayHelper {
return true;
}
public static boolean[] negate(boolean[] valueNullness) {
boolean[] result = new boolean[valueNullness.length];
for (int i = 0; i < valueNullness.length; i++) {
result[i] = !valueNullness[i];
}
return result;
}
public static <T> void addAll(Collection<T> collection, T[] array) {
collection.addAll( Arrays.asList( array ) );
}