public static final class RateCalculationSwapLeg.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<RateCalculationSwapLeg>
RateCalculationSwapLeg.| Modifier and Type | Method and Description |
|---|---|
RateCalculationSwapLeg.Builder |
accrualSchedule(PeriodicSchedule accrualSchedule)
Sets the accrual schedule.
|
RateCalculationSwapLeg |
build() |
RateCalculationSwapLeg.Builder |
calculation(RateCalculation calculation)
Sets the interest rate accrual calculation.
|
Object |
get(String propertyName) |
RateCalculationSwapLeg.Builder |
notionalSchedule(NotionalSchedule notionalSchedule)
Sets the notional schedule.
|
RateCalculationSwapLeg.Builder |
paymentSchedule(PaymentSchedule paymentSchedule)
Sets the payment schedule.
|
RateCalculationSwapLeg.Builder |
payReceive(PayReceive payReceive)
Sets whether the leg is pay or receive.
|
RateCalculationSwapLeg.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
RateCalculationSwapLeg.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<RateCalculationSwapLeg>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<RateCalculationSwapLeg>public RateCalculationSwapLeg.Builder set(String propertyName, Object newValue)
public RateCalculationSwapLeg.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<RateCalculationSwapLeg>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<RateCalculationSwapLeg>public RateCalculationSwapLeg build()
public RateCalculationSwapLeg.Builder payReceive(PayReceive payReceive)
A value of 'Pay' implies that the resulting amount is paid to the counterparty. A value of 'Receive' implies that the resulting amount is received from the counterparty. Note that negative interest rates can result in a payment in the opposite direction to that implied by this indicator.
payReceive - the new value, not nullpublic RateCalculationSwapLeg.Builder accrualSchedule(PeriodicSchedule accrualSchedule)
This is used to define the accrual periods. These are used directly or indirectly to determine other dates in the swap.
accrualSchedule - the new value, not nullpublic RateCalculationSwapLeg.Builder paymentSchedule(PaymentSchedule paymentSchedule)
This is used to define the payment periods, including any compounding. The payment period dates are based on the accrual schedule.
paymentSchedule - the new value, not nullpublic RateCalculationSwapLeg.Builder notionalSchedule(NotionalSchedule notionalSchedule)
The notional amount schedule, which can vary during the lifetime of the swap. In most cases, the notional amount is not exchanged, with only the net difference being exchanged. However, in certain cases, initial, final or intermediate amounts are exchanged.
notionalSchedule - the new value, not nullpublic RateCalculationSwapLeg.Builder calculation(RateCalculation calculation)
Different kinds of swap leg are determined by the subclass used here.
See FixedRateCalculation, IborRateCalculation and OvernightRateCalculation.
calculation - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<RateCalculationSwapLeg>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.