class SwapLegAmount implements LegAmount, ImmutableBean, Serializable {

  @Override
  public SwapLegAmount convertedTo(Currency resultCurrency, FxRateProvider rateProvider) {
    CurrencyAmount convertedAmount = amount.convertedTo(resultCurrency, rateProvider);
    return this.toBuilder().amount(convertedAmount).build();
  }

  private  SwapLegAmount(
      CurrencyAmount amount,
      PayReceive payReceive,
      SwapLegType type,
      Currency currency);

}