Class ImmutableSwapIndex.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableSwapIndex>
-
- com.opengamma.strata.product.swap.ImmutableSwapIndex.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ImmutableSwapIndex>
- Enclosing class:
- ImmutableSwapIndex
public static final class ImmutableSwapIndex.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableSwapIndex>
The bean-builder forImmutableSwapIndex.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableSwapIndex.Builderactive(boolean active)Sets whether the index is active, defaulted to true.ImmutableSwapIndexbuild()ImmutableSwapIndex.BuilderfixingTime(LocalTime fixingTime)Sets the fixing time.ImmutableSwapIndex.BuilderfixingZone(ZoneId fixingZone)Sets the time-zone of the fixing time.Objectget(String propertyName)ImmutableSwapIndex.Buildername(String name)Sets the index name.ImmutableSwapIndex.Builderset(String propertyName, Object newValue)ImmutableSwapIndex.Builderset(org.joda.beans.MetaProperty<?> property, Object value)ImmutableSwapIndex.Buildertemplate(FixedFloatSwapTemplate template)Sets the template for creating a Fixed-Ibor or Fixed-Overnight swap.StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<ImmutableSwapIndex>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableSwapIndex>
-
set
public ImmutableSwapIndex.Builder set(String propertyName, Object newValue)
-
set
public ImmutableSwapIndex.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<ImmutableSwapIndex>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableSwapIndex>
-
build
public ImmutableSwapIndex build()
-
name
public ImmutableSwapIndex.Builder name(String name)
Sets the index name.- Parameters:
name- the new value, not empty- Returns:
- this, for chaining, not null
-
active
public ImmutableSwapIndex.Builder active(boolean active)
Sets whether the index is active, defaulted to true.Over time some indices become inactive and are no longer produced. If this occurs, this flag will be set to false.
- Parameters:
active- the new value- Returns:
- this, for chaining, not null
-
fixingTime
public ImmutableSwapIndex.Builder fixingTime(LocalTime fixingTime)
Sets the fixing time.- Parameters:
fixingTime- the new value, not null- Returns:
- this, for chaining, not null
-
fixingZone
public ImmutableSwapIndex.Builder fixingZone(ZoneId fixingZone)
Sets the time-zone of the fixing time.- Parameters:
fixingZone- the new value, not null- Returns:
- this, for chaining, not null
-
template
public ImmutableSwapIndex.Builder template(FixedFloatSwapTemplate template)
Sets the template for creating a Fixed-Ibor or Fixed-Overnight swap.- Parameters:
template- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableSwapIndex>
-
-