/guava/guava/src/com/google/common/primitives/Doubles.java
Object[] boxedArray = collection.toArray ( ) ;
reverse(array, fromIndex, toIndex); } public static double[] toArray(Collection<? extends Number> collection) { if (collection instanceof DoubleArrayAsList) { return ((DoubleArrayAsList) collection).toDoubleArray(); } <extra_id_0> int len = boxedArray.length; double[] array = new double[len]; for (int i = 0; i < len; i++) { array[i] = ((Number) checkNotNull(boxedArray[i])).doubleValue(); } return array;