public static final class FraTemplate.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FraTemplate>
FraTemplate.| Modifier and Type | Method and Description |
|---|---|
FraTemplate |
build() |
FraTemplate.Builder |
convention(FraConvention convention)
Sets the underlying FRA convention.
|
Object |
get(String propertyName) |
FraTemplate.Builder |
periodToEnd(Period periodToEnd)
Sets the period between the spot value date and the end date.
|
FraTemplate.Builder |
periodToStart(Period periodToStart)
Sets the period between the spot value date and the start date.
|
FraTemplate.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
FraTemplate.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<FraTemplate>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FraTemplate>public FraTemplate.Builder set(String propertyName, Object newValue)
public FraTemplate.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<FraTemplate>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FraTemplate>public FraTemplate build()
public FraTemplate.Builder periodToStart(Period periodToStart)
In a FRA described as '2 x 5', the period to the start date is 2 months.
periodToStart - the new value, not nullpublic FraTemplate.Builder periodToEnd(Period periodToEnd)
In a FRA described as '2 x 5', the period to the end date is 5 months. The difference between the start date and the end date typically matches the tenor of the index, however this is not validated.
When building, this will default to the period to start plus the tenor of the index if not specified.
periodToEnd - the new value, not nullpublic FraTemplate.Builder convention(FraConvention convention)
This specifies the market convention of the FRA to be created.
convention - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FraTemplate>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.