/guava/guava/src/com/google/common/primitives/ImmutableDoubleArray.java
return rest.length == 0 ? EMPTY : new ImmutableDoubleArray( Arrays.copyOf( values, values.length) ) ;
return values.length == 0 ? EMPTY : new ImmutableDoubleArray ( Arrays.copyOf ( values, values.length ) ) ;
double[] array = new double[rest.length + 1]; array[0] = first; System.arraycopy(rest, 0, array, 1, rest.length); return new ImmutableDoubleArray(array); } public static ImmutableDoubleArray copyOf(double[] values) { <extra_id_0> } public static ImmutableDoubleArray copyOf(Collection<Double> values) { return values.isEmpty() ? EMPTY : new ImmutableDoubleArray(Doubles.toArray(values)); } public static ImmutableDoubleArray copyOf(Iterable<Double> values) { if (values instanceof Collection) {