class MultipleCurrencyAmount implements ImmutableBean,
    Iterable<CurrencyAmount>, Serializable {

  @Override
  public boolean equals(Object obj) {
    if (obj == this) {
      return true;
    }
    if (obj != null && obj.getClass() == this.getClass()) {
      MultipleCurrencyAmount other = (MultipleCurrencyAmount) obj;
      return JodaBeanUtils.equal(getCurrencyAmountMap(), other.getCurrencyAmountMap());
    }
    return false;
  }

  private  MultipleCurrencyAmount(ImmutableSortedMap<Currency, CurrencyAmount> currencyAmountMap);
  private  MultipleCurrencyAmount(
      SortedMap<Currency, CurrencyAmount> currencyAmountMap);

}