Merge remote-tracking branch 'upstream/master' into wip/6.0
This commit is contained in:
commit
0fafae4624
|
@ -238,6 +238,15 @@ public final class ArrayHelper {
|
||||||
return true;
|
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) {
|
public static <T> void addAll(Collection<T> collection, T[] array) {
|
||||||
collection.addAll( Arrays.asList( array ) );
|
collection.addAll( Arrays.asList( array ) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue