Class MarketDataRequirementsBuilder
- java.lang.Object
-
- com.opengamma.strata.calc.marketdata.MarketDataRequirementsBuilder
-
public final class MarketDataRequirementsBuilder extends Object
Mutable builder for creating instances ofMarketDataRequirements
.
-
-
Constructor Summary
Constructors Constructor Description MarketDataRequirementsBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MarketDataRequirementsBuilder
addOutputCurrencies(Currency... currencies)
Adds the output currencies.MarketDataRequirementsBuilder
addRequirements(MarketDataRequirements requirements)
Adds all requirements from an instance ofMarketDataRequirements
to this builder.MarketDataRequirementsBuilder
addTimeSeries(ObservableId... ids)
Adds requirements for time series of observable market data.MarketDataRequirementsBuilder
addTimeSeries(Collection<? extends ObservableId> ids)
Adds requirements for time series of observable market data.MarketDataRequirementsBuilder
addValues(MarketDataId<?>... ids)
Adds requirements for single values of market data.MarketDataRequirementsBuilder
addValues(Collection<? extends MarketDataId<?>> ids)
Adds requirements for single values of market data.MarketDataRequirements
build()
Returns a set of market data requirements built from the data in this builder.
-
-
-
Method Detail
-
addTimeSeries
public MarketDataRequirementsBuilder addTimeSeries(Collection<? extends ObservableId> ids)
Adds requirements for time series of observable market data.- Parameters:
ids
- IDs of the data- Returns:
- this builder
-
addTimeSeries
public MarketDataRequirementsBuilder addTimeSeries(ObservableId... ids)
Adds requirements for time series of observable market data.- Parameters:
ids
- IDs of the data- Returns:
- this builder
-
addValues
public MarketDataRequirementsBuilder addValues(Collection<? extends MarketDataId<?>> ids)
Adds requirements for single values of market data.- Parameters:
ids
- IDs of the data- Returns:
- this builder
-
addValues
public MarketDataRequirementsBuilder addValues(MarketDataId<?>... ids)
Adds requirements for single values of market data.- Parameters:
ids
- IDs of the data- Returns:
- this builder
-
addOutputCurrencies
public MarketDataRequirementsBuilder addOutputCurrencies(Currency... currencies)
Adds the output currencies.These are used to ensure that FX rate market data is available for currency conversion.
- Parameters:
currencies
- the output currencies- Returns:
- this builder
-
addRequirements
public MarketDataRequirementsBuilder addRequirements(MarketDataRequirements requirements)
Adds all requirements from an instance ofMarketDataRequirements
to this builder.- Parameters:
requirements
- a set of requirements- Returns:
- this builder
-
build
public MarketDataRequirements build()
Returns a set of market data requirements built from the data in this builder.- Returns:
- a set of market data requirements built from the data in this builder
-
-