public static final class ResolvedSwapLeg.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwapLeg>
ResolvedSwapLeg.| Modifier and Type | Method and Description |
|---|---|
ResolvedSwapLeg |
build() |
Object |
get(String propertyName) |
ResolvedSwapLeg.Builder |
paymentEvents(List<? extends SwapPaymentEvent> paymentEvents)
Sets the payment events that are associated with the swap leg.
|
ResolvedSwapLeg.Builder |
paymentEvents(SwapPaymentEvent... paymentEvents)
Sets the
paymentEvents property in the builder
from an array of objects. |
ResolvedSwapLeg.Builder |
paymentPeriods(List<? extends SwapPaymentPeriod> paymentPeriods)
Sets the payment periods that combine to form the swap leg.
|
ResolvedSwapLeg.Builder |
paymentPeriods(SwapPaymentPeriod... paymentPeriods)
Sets the
paymentPeriods property in the builder
from an array of objects. |
ResolvedSwapLeg.Builder |
payReceive(PayReceive payReceive)
Sets whether the leg is pay or receive.
|
ResolvedSwapLeg.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
ResolvedSwapLeg.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
ResolvedSwapLeg.Builder |
type(SwapLegType type)
Sets the type of the leg, such as Fixed or Ibor.
|
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<ResolvedSwapLeg>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwapLeg>public ResolvedSwapLeg.Builder set(String propertyName, Object newValue)
public ResolvedSwapLeg.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<ResolvedSwapLeg>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwapLeg>public ResolvedSwapLeg build()
public ResolvedSwapLeg.Builder type(SwapLegType type)
This provides a high level categorization of the swap leg.
type - the new value, not nullpublic ResolvedSwapLeg.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.
The value of this flag should match the signs of the payment period notionals.
payReceive - the new value, not nullpublic ResolvedSwapLeg.Builder paymentPeriods(List<? extends SwapPaymentPeriod> paymentPeriods)
Each payment period represents part of the life-time of the leg. In most cases, the periods do not overlap. However, since each payment period is essentially independent the data model allows overlapping periods.
The start date and end date of the leg are determined from the first and last period. As such, the periods should be sorted.
paymentPeriods - the new value, not emptypublic ResolvedSwapLeg.Builder paymentPeriods(SwapPaymentPeriod... paymentPeriods)
paymentPeriods property in the builder
from an array of objects.paymentPeriods - the new value, not emptypublic ResolvedSwapLeg.Builder paymentEvents(List<? extends SwapPaymentEvent> paymentEvents)
Payment events include notional exchange and fees.
paymentEvents - the new value, not nullpublic ResolvedSwapLeg.Builder paymentEvents(SwapPaymentEvent... paymentEvents)
paymentEvents property in the builder
from an array of objects.paymentEvents - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwapLeg>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.