guava/src/com/google/common/primitives/ImmutableDoubleArray.java
public static ImmutableDoubleArray copyOf(Collection<Double> values) {
    return values.isEmpty() ? EMPTY : new ImmutableDoubleArray(Doubles.toArray(values));
  }
public static ImmutableDoubleArray copyOf(Collection<Double> values) {
    return values.isEmpty() ? EMPTY : new ImmutableDoubleArray(Doubles.toArray(values));
  }
public static ImmutableDoubleArray copyOf ( Collection < Double > values ) { return values . isEmpty ( ) ? EMPTY : new ImmutableDoubleArray ( Doubles . toArray ( values ) ) ; }
Returns an immutable array containing the given values, in order.
Returns an immutable array containing the given values in order .