code: public static ImmutableDoubleArray copyOf(Collection<Double> values) {
      return values.isEmpty() ? EMPTY : new ImmutableDoubleArray(Doubles.toArray(values));
    }
docs: Returns an immutable array containing the given values, in order.