Class ScenarioDefinition.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ScenarioDefinition>
-
- com.opengamma.strata.calc.marketdata.ScenarioDefinition.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ScenarioDefinition>
- Enclosing class:
- ScenarioDefinition
public static final class ScenarioDefinition.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ScenarioDefinition>
The bean-builder forScenarioDefinition
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScenarioDefinition
build()
Object
get(String propertyName)
ScenarioDefinition.Builder
mappings(PerturbationMapping<?>... mappings)
Sets themappings
property in the builder from an array of objects.ScenarioDefinition.Builder
mappings(List<? extends PerturbationMapping<?>> mappings)
Sets the market data filters and perturbations that define the scenarios.ScenarioDefinition.Builder
scenarioNames(String... scenarioNames)
Sets thescenarioNames
property in the builder from an array of objects.ScenarioDefinition.Builder
scenarioNames(List<String> scenarioNames)
Sets the names of the scenarios.ScenarioDefinition.Builder
set(String propertyName, Object newValue)
ScenarioDefinition.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<ScenarioDefinition>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ScenarioDefinition>
-
set
public ScenarioDefinition.Builder set(String propertyName, Object newValue)
-
set
public ScenarioDefinition.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<ScenarioDefinition>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ScenarioDefinition>
-
build
public ScenarioDefinition build()
-
mappings
public ScenarioDefinition.Builder mappings(List<? extends PerturbationMapping<?>> mappings)
Sets the market data filters and perturbations that define the scenarios.- Parameters:
mappings
- the new value, not null- Returns:
- this, for chaining, not null
-
mappings
@SafeVarargs public final ScenarioDefinition.Builder mappings(PerturbationMapping<?>... mappings)
Sets themappings
property in the builder from an array of objects.- Parameters:
mappings
- the new value, not null- Returns:
- this, for chaining, not null
-
scenarioNames
public ScenarioDefinition.Builder scenarioNames(List<String> scenarioNames)
Sets the names of the scenarios.- Parameters:
scenarioNames
- the new value, not null- Returns:
- this, for chaining, not null
-
scenarioNames
public ScenarioDefinition.Builder scenarioNames(String... scenarioNames)
Sets thescenarioNames
property in the builder from an array of objects.- Parameters:
scenarioNames
- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ScenarioDefinition>
-
-