class DoubleArrayValueFormatter implements ValueFormatter<double[]> {

  @Override
  public String formatForCsv(double[] array) {
    return Arrays.stream(array).mapToObj(Double::toString).collect(joining(" ", "[", "]"));
  }

  private  DoubleArrayValueFormatter();

}