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.Objectget(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)StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<T>- Overrides:
getin 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:
setin interfaceorg.joda.beans.BeanBuilder<T>- Overrides:
setin 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:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<PerturbationMapping<T>>
-
-