Package com.opengamma.strata.calc.runner
Class FunctionRequirements.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FunctionRequirements>
-
- com.opengamma.strata.calc.runner.FunctionRequirements.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<FunctionRequirements>
- Enclosing class:
- FunctionRequirements
public static final class FunctionRequirements.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FunctionRequirements>
The bean-builder forFunctionRequirements
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionRequirements
build()
Object
get(String propertyName)
FunctionRequirements.Builder
observableSource(ObservableSource observableSource)
Sets the source of market data for FX, quotes and other observable market data.FunctionRequirements.Builder
outputCurrencies(Currency... outputCurrencies)
Sets theoutputCurrencies
property in the builder from an array of objects.FunctionRequirements.Builder
outputCurrencies(Set<Currency> outputCurrencies)
Sets the currencies used in the calculation results.FunctionRequirements.Builder
set(String propertyName, Object newValue)
FunctionRequirements.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
FunctionRequirements.Builder
timeSeriesRequirements(ObservableId... timeSeriesRequirements)
Sets thetimeSeriesRequirements
property in the builder from an array of objects.FunctionRequirements.Builder
timeSeriesRequirements(Set<ObservableId> timeSeriesRequirements)
Sets the market data identifiers of the time-series of required for the calculation.String
toString()
FunctionRequirements.Builder
valueRequirements(MarketDataId<?>... valueRequirements)
Sets thevalueRequirements
property in the builder from an array of objects.FunctionRequirements.Builder
valueRequirements(Set<? extends MarketDataId<?>> valueRequirements)
Sets the market data identifiers of the values required for the calculation.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<FunctionRequirements>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FunctionRequirements>
-
set
public FunctionRequirements.Builder set(String propertyName, Object newValue)
-
set
public FunctionRequirements.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<FunctionRequirements>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FunctionRequirements>
-
build
public FunctionRequirements build()
-
valueRequirements
public FunctionRequirements.Builder valueRequirements(Set<? extends MarketDataId<?>> valueRequirements)
Sets the market data identifiers of the values required for the calculation.- Parameters:
valueRequirements
- the new value, not null- Returns:
- this, for chaining, not null
-
valueRequirements
@SafeVarargs public final FunctionRequirements.Builder valueRequirements(MarketDataId<?>... valueRequirements)
Sets thevalueRequirements
property in the builder from an array of objects.- Parameters:
valueRequirements
- the new value, not null- Returns:
- this, for chaining, not null
-
timeSeriesRequirements
public FunctionRequirements.Builder timeSeriesRequirements(Set<ObservableId> timeSeriesRequirements)
Sets the market data identifiers of the time-series of required for the calculation.- Parameters:
timeSeriesRequirements
- the new value, not null- Returns:
- this, for chaining, not null
-
timeSeriesRequirements
public FunctionRequirements.Builder timeSeriesRequirements(ObservableId... timeSeriesRequirements)
Sets thetimeSeriesRequirements
property in the builder from an array of objects.- Parameters:
timeSeriesRequirements
- the new value, not null- Returns:
- this, for chaining, not null
-
outputCurrencies
public FunctionRequirements.Builder outputCurrencies(Set<Currency> outputCurrencies)
Sets the currencies used in the calculation results.This cause FX rates to be requested that allow conversion between the currencies specified and the reporting currency. It will be possible to obtain any FX rate pair for these currencies.
- Parameters:
outputCurrencies
- the new value, not null- Returns:
- this, for chaining, not null
-
outputCurrencies
public FunctionRequirements.Builder outputCurrencies(Currency... outputCurrencies)
Sets theoutputCurrencies
property in the builder from an array of objects.- Parameters:
outputCurrencies
- the new value, not null- Returns:
- this, for chaining, not null
-
observableSource
public FunctionRequirements.Builder observableSource(ObservableSource observableSource)
Sets the source of market data for FX, quotes and other observable market data.This is used to control the source of observable market data. By default, this will be
ObservableSource.NONE
.- Parameters:
observableSource
- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FunctionRequirements>
-
-