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 ScenarioDefinitionbuild()Objectget(String propertyName)ScenarioDefinition.Buildermappings(PerturbationMapping<?>... mappings)Sets themappingsproperty in the builder from an array of objects.ScenarioDefinition.Buildermappings(List<? extends PerturbationMapping<?>> mappings)Sets the market data filters and perturbations that define the scenarios.ScenarioDefinition.BuilderscenarioNames(String... scenarioNames)Sets thescenarioNamesproperty in the builder from an array of objects.ScenarioDefinition.BuilderscenarioNames(List<String> scenarioNames)Sets the names of the scenarios.ScenarioDefinition.Builderset(String propertyName, Object newValue)ScenarioDefinition.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<ScenarioDefinition>- Overrides:
getin 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:
setin interfaceorg.joda.beans.BeanBuilder<ScenarioDefinition>- Overrides:
setin 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 themappingsproperty 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 thescenarioNamesproperty 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:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ScenarioDefinition>
-
-