Class PerturbationMapping.Builder<T>
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<PerturbationMapping<T>>
-
- com.opengamma.strata.calc.marketdata.PerturbationMapping.Builder<T>
-
- Type Parameters:
T
- the type
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<PerturbationMapping<T>>
- Enclosing class:
- PerturbationMapping<T>
public static final class PerturbationMapping.Builder<T> extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<PerturbationMapping<T>>
The bean-builder forPerturbationMapping
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PerturbationMapping<T>
build()
PerturbationMapping.Builder<T>
filter(MarketDataFilter<? extends T,?> filter)
Sets the filter that decides whether the perturbation should be applied to a piece of market data.Object
get(String propertyName)
PerturbationMapping.Builder<T>
marketDataType(Class<T> marketDataType)
Sets the type of market data handled by this mapping.PerturbationMapping.Builder<T>
perturbation(ScenarioPerturbation<T> perturbation)
Sets perturbation that should be applied to market data as part of a scenario.PerturbationMapping.Builder<T>
set(String propertyName, Object newValue)
PerturbationMapping.Builder<T>
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<T>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<PerturbationMapping<T>>
-
set
public PerturbationMapping.Builder<T> set(String propertyName, Object newValue)
-
set
public PerturbationMapping.Builder<T> set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<T>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<PerturbationMapping<T>>
-
build
public PerturbationMapping<T> build()
-
marketDataType
public PerturbationMapping.Builder<T> marketDataType(Class<T> marketDataType)
Sets the type of market data handled by this mapping.- Parameters:
marketDataType
- the new value, not null- Returns:
- this, for chaining, not null
-
filter
public PerturbationMapping.Builder<T> filter(MarketDataFilter<? extends T,?> filter)
Sets the filter that decides whether the perturbation should be applied to a piece of market data.- Parameters:
filter
- the new value, not null- Returns:
- this, for chaining, not null
-
perturbation
public PerturbationMapping.Builder<T> perturbation(ScenarioPerturbation<T> perturbation)
Sets perturbation that should be applied to market data as part of a scenario.- Parameters:
perturbation
- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<PerturbationMapping<T>>
-
-