Class ImmutableFixedOvernightSwapConvention.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableFixedOvernightSwapConvention>
-
- com.opengamma.strata.product.swap.type.ImmutableFixedOvernightSwapConvention.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ImmutableFixedOvernightSwapConvention>
- Enclosing class:
- ImmutableFixedOvernightSwapConvention
public static final class ImmutableFixedOvernightSwapConvention.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableFixedOvernightSwapConvention>
The bean-builder forImmutableFixedOvernightSwapConvention
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableFixedOvernightSwapConvention
build()
ImmutableFixedOvernightSwapConvention.Builder
fixedLeg(FixedRateSwapLegConvention fixedLeg)
Sets the market convention of the fixed leg.ImmutableFixedOvernightSwapConvention.Builder
floatingLeg(OvernightRateSwapLegConvention floatingLeg)
Sets the market convention of the floating leg.Object
get(String propertyName)
ImmutableFixedOvernightSwapConvention.Builder
name(String name)
Sets the convention name, such as 'USD-FIXED-TERM-FED-FUND-OIS'.ImmutableFixedOvernightSwapConvention.Builder
set(String propertyName, Object newValue)
ImmutableFixedOvernightSwapConvention.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
ImmutableFixedOvernightSwapConvention.Builder
spotDateOffset(DaysAdjustment spotDateOffset)
Sets the offset of the spot value date from the trade date.String
toString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<ImmutableFixedOvernightSwapConvention>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableFixedOvernightSwapConvention>
-
set
public ImmutableFixedOvernightSwapConvention.Builder set(String propertyName, Object newValue)
-
set
public ImmutableFixedOvernightSwapConvention.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<ImmutableFixedOvernightSwapConvention>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableFixedOvernightSwapConvention>
-
build
public ImmutableFixedOvernightSwapConvention build()
-
name
public ImmutableFixedOvernightSwapConvention.Builder name(String name)
Sets the convention name, such as 'USD-FIXED-TERM-FED-FUND-OIS'.- Parameters:
name
- the new value, not null- Returns:
- this, for chaining, not null
-
fixedLeg
public ImmutableFixedOvernightSwapConvention.Builder fixedLeg(FixedRateSwapLegConvention fixedLeg)
Sets the market convention of the fixed leg.- Parameters:
fixedLeg
- the new value, not null- Returns:
- this, for chaining, not null
-
floatingLeg
public ImmutableFixedOvernightSwapConvention.Builder floatingLeg(OvernightRateSwapLegConvention floatingLeg)
Sets the market convention of the floating leg.- Parameters:
floatingLeg
- the new value, not null- Returns:
- this, for chaining, not null
-
spotDateOffset
public ImmutableFixedOvernightSwapConvention.Builder spotDateOffset(DaysAdjustment spotDateOffset)
Sets the offset of the spot value date from the trade date.The offset is applied to the trade date to find the start date. A typical value is "plus 2 business days".
- Parameters:
spotDateOffset
- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableFixedOvernightSwapConvention>
-
-