Commit 6ce6b8d2 authored by helene ortiz's avatar helene ortiz
Browse files

No commit message

No commit message
parent 3577f861
......@@ -114,6 +114,9 @@ public class Float32Array extends Array {
}
public boolean onlyContainsNegativeValues() {
if (array == null) {
return false;
}
for (int i = 0; i < array.length; i++) {
if (array[i] > 0) {
return false;
......
......@@ -113,6 +113,9 @@ public class Float64Array extends Array {
}
public boolean onlyContainsNegativeValues() {
if (array == null) {
return false;
}
for (int i = 0; i < array.length; i++) {
if (array[i] > 0) {
return false;
......
......@@ -122,6 +122,9 @@ public class Int16Array extends Array {
}
public boolean onlyContainsNegativeValues() {
if (array == null) {
return false;
}
for (int i = 0; i < array.length; i++) {
if (array[i] > 0) {
return false;
......
......@@ -121,6 +121,9 @@ public class Int32Array extends Array {
}
public boolean onlyContainsNegativeValues() {
if (array == null) {
return false;
}
for (int i = 0; i < array.length; i++) {
if (array[i] > 0) {
return false;
......
......@@ -124,6 +124,9 @@ public class Int64Array extends Array {
}
public boolean onlyContainsNegativeValues() {
if (array == null) {
return false;
}
for (int i = 0; i < array.length; i++) {
if (array[i] > 0) {
return false;
......
......@@ -123,6 +123,9 @@ public class Int8Array extends Array {
}
public boolean onlyContainsNegativeValues() {
if (array == null) {
return false;
}
for (int i = 0; i < array.length; i++) {
if (array[i] > 0) {
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment