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.Builder
active(boolean active)
Sets whether the index is active, defaulted to true.ImmutableSwapIndex
build()
ImmutableSwapIndex.Builder
fixingTime(LocalTime fixingTime)
Sets the fixing time.ImmutableSwapIndex.Builder
fixingZone(ZoneId fixingZone)
Sets the time-zone of the fixing time.Object
get(String propertyName)
ImmutableSwapIndex.Builder
name(String name)
Sets the index name.ImmutableSwapIndex.Builder
set(String propertyName, Object newValue)
ImmutableSwapIndex.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
ImmutableSwapIndex.Builder
template(FixedFloatSwapTemplate template)
Sets the template for creating a Fixed-Ibor or Fixed-Overnight swap.String
toString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<ImmutableSwapIndex>
- Overrides:
get
in 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:
set
in interfaceorg.joda.beans.BeanBuilder<ImmutableSwapIndex>
- Overrides:
set
in 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:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableSwapIndex>
-
-