public static final class ResolvedFra.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFra>
ResolvedFra.| Modifier and Type | Method and Description |
|---|---|
ResolvedFra |
build() |
ResolvedFra.Builder |
currency(Currency currency)
Sets the primary currency.
|
ResolvedFra.Builder |
discounting(FraDiscountingMethod discounting)
Sets the method to use for discounting.
|
ResolvedFra.Builder |
endDate(LocalDate endDate)
Sets the end date, which is the termination date of the FRA.
|
ResolvedFra.Builder |
fixedRate(double fixedRate)
Sets the fixed rate of interest.
|
ResolvedFra.Builder |
floatingRate(RateComputation floatingRate)
Sets the floating rate of interest.
|
Object |
get(String propertyName) |
ResolvedFra.Builder |
notional(double notional)
Sets the notional amount.
|
ResolvedFra.Builder |
paymentDate(LocalDate paymentDate)
Sets the date that payment occurs.
|
ResolvedFra.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
ResolvedFra.Builder |
set(String propertyName,
Object newValue) |
ResolvedFra.Builder |
startDate(LocalDate startDate)
Sets the start date, which is the effective date of the FRA.
|
String |
toString() |
ResolvedFra.Builder |
yearFraction(double yearFraction)
Sets the year fraction between the start and end date.
|
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<ResolvedFra>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFra>public ResolvedFra.Builder set(String propertyName, Object newValue)
public ResolvedFra.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<ResolvedFra>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFra>public ResolvedFra build()
public ResolvedFra.Builder currency(Currency currency)
This is the currency of the FRA and the currency that payment is made in. The data model permits this currency to differ from that of the index, however the two are typically the same.
currency - the new value, not nullpublic ResolvedFra.Builder notional(double notional)
The notional, which is a positive signed amount if the FRA is 'buy', and a negative signed amount if the FRA is 'sell'.
The currency of the notional is specified by currency.
notional - the new valuepublic ResolvedFra.Builder paymentDate(LocalDate paymentDate)
This is an adjusted date, which should be a valid business day
paymentDate - the new value, not nullpublic ResolvedFra.Builder startDate(LocalDate startDate)
This is the first date that interest accrues.
This is an adjusted date, which should be a valid business day
startDate - the new value, not nullpublic ResolvedFra.Builder endDate(LocalDate endDate)
This is the last day that interest accrues. This date must be after the start date.
This is an adjusted date, which should be a valid business day
endDate - the new value, not nullpublic ResolvedFra.Builder yearFraction(double yearFraction)
The value is usually calculated using a DayCount.
Typically the value will be close to 1 for one year and close to 0.5 for six months.
The fraction may be greater than 1, but not less than 0.
yearFraction - the new valuepublic ResolvedFra.Builder fixedRate(double fixedRate)
fixedRate - the new valuepublic ResolvedFra.Builder floatingRate(RateComputation floatingRate)
The floating rate to be paid is based on this index. It will be a well known market index such as 'GBP-LIBOR-3M'.
floatingRate - the new value, not nullpublic ResolvedFra.Builder discounting(FraDiscountingMethod discounting)
There are different approaches to FRA pricing in the area of discounting. This method specifies the approach for this FRA.
discounting - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFra>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.