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