class CurrencySeriesConversionFunction extends AbstractFunction.NonCompiledInvoker {

  @VisibleForTesting
  /* package */ TenorLabelledLocalDateDoubleTimeSeriesMatrix1D convertLabelledMatrix(final LabelledObjectMatrix1D<Tenor, LocalDateDoubleTimeSeries, Period> values, final DoubleTimeSeries<LocalDate> conversionRates) {
    LocalDateDoubleTimeSeries[] convertedValues = new LocalDateDoubleTimeSeries[values.size()];
    for (int i = 0; i < values.size(); i++) {
      convertedValues[i] = (LocalDateDoubleTimeSeries) convertTimeSeries(values.getValues()[i], conversionRates);
    }
    return new TenorLabelledLocalDateDoubleTimeSeriesMatrix1D(values.getKeys(), values.getLabels(), values.getLabelsTitle(), convertedValues, values.getValuesTitle());
  }

  public  CurrencySeriesConversionFunction(final String valueName);
  public  CurrencySeriesConversionFunction(final String... valueNames);

}