/** * Gets the contents of the given {@link JsArrayMixed} as a double array. * * @param o {@link JsArrayMixed} * @return double[] if the array is not null, else null */ private static double[] getDoubleArray(JsArrayMixed o) { if (o != null) { double[] a = new double[o.length()]; for (int i = 0; i < o.length(); i++) { a[i] = o.getNumber(i); } return a; } else { return null; } }