class FXMatrix implements Serializable {

  public CurrencyAmount convert(final MultipleCurrencyAmount amount, final Currency ccy) {
    ArgumentChecker.notNull(amount, "amount");
    double conversion = 0;
    final CurrencyAmount[] ca = amount.getCurrencyAmounts();
    for (final CurrencyAmount element : ca) {
      conversion += element.getAmount() * getFxRate(element.getCurrency(), ccy);
    }
    return CurrencyAmount.of(ccy, conversion);
  }

  public  FXMatrix();
  public  FXMatrix(final Currency ccy);
  public  FXMatrix(final Currency ccy1, final Currency ccy2, final double fxRate);
  public  FXMatrix(final Map<Currency, Integer> currencies, final double[][] fxRates);
  public  FXMatrix(final FXMatrix fxMatrix);

}