Class ImmutableFixedIborSwapConvention.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableFixedIborSwapConvention>
-
- com.opengamma.strata.product.swap.type.ImmutableFixedIborSwapConvention.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ImmutableFixedIborSwapConvention>
- Enclosing class:
- ImmutableFixedIborSwapConvention
public static final class ImmutableFixedIborSwapConvention.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableFixedIborSwapConvention>
The bean-builder forImmutableFixedIborSwapConvention.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableFixedIborSwapConventionbuild()ImmutableFixedIborSwapConvention.BuilderfixedLeg(FixedRateSwapLegConvention fixedLeg)Sets the market convention of the fixed leg.ImmutableFixedIborSwapConvention.BuilderfloatingLeg(IborRateSwapLegConvention floatingLeg)Sets the market convention of the floating leg.Objectget(String propertyName)ImmutableFixedIborSwapConvention.Buildername(String name)Sets the convention name, such as 'USD-FIXED-6M-LIBOR-3M'.ImmutableFixedIborSwapConvention.Builderset(String propertyName, Object newValue)ImmutableFixedIborSwapConvention.Builderset(org.joda.beans.MetaProperty<?> property, Object value)ImmutableFixedIborSwapConvention.BuilderspotDateOffset(DaysAdjustment spotDateOffset)Sets the offset of the spot value date from the trade date.StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<ImmutableFixedIborSwapConvention>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableFixedIborSwapConvention>
-
set
public ImmutableFixedIborSwapConvention.Builder set(String propertyName, Object newValue)
-
set
public ImmutableFixedIborSwapConvention.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<ImmutableFixedIborSwapConvention>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableFixedIborSwapConvention>
-
build
public ImmutableFixedIborSwapConvention build()
-
name
public ImmutableFixedIborSwapConvention.Builder name(String name)
Sets the convention name, such as 'USD-FIXED-6M-LIBOR-3M'.- Parameters:
name- the new value, not null- Returns:
- this, for chaining, not null
-
fixedLeg
public ImmutableFixedIborSwapConvention.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 ImmutableFixedIborSwapConvention.Builder floatingLeg(IborRateSwapLegConvention floatingLeg)
Sets the market convention of the floating leg.- Parameters:
floatingLeg- the new value, not null- Returns:
- this, for chaining, not null
-
spotDateOffset
public ImmutableFixedIborSwapConvention.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:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableFixedIborSwapConvention>
-
-