public final class MarketDataConfigBuilder extends Object
MarketDataConfig.| Modifier and Type | Method and Description |
|---|---|
MarketDataConfigBuilder |
add(String name,
Object value)
Adds an item of configuration under the specified name.
|
MarketDataConfigBuilder |
add(TypedString<?> name,
Object value)
Adds an item of configuration under the specified name.
|
<T> MarketDataConfigBuilder |
addDefault(T value)
Adds an item of configuration that is the default of its type.
|
MarketDataConfig |
build()
Returns a
MarketDataConfig instance built from the data in this builder. |
public MarketDataConfigBuilder add(String name, Object value)
name - the name of the configuration itemvalue - the configuration itempublic MarketDataConfigBuilder add(TypedString<?> name, Object value)
name - the name of the configuration itemvalue - the configuration itempublic <T> MarketDataConfigBuilder addDefault(T value)
There can only be one default item for each type.
There is a class of configuration where there is always a one value shared between all calculations. An example is the configuration which specifies which market quote to use when building FX rates for a currency pair. All calculations use the same set of FX rates obtained from the same underlying market data.
T - the type used when looking up the configurationvalue - the configuration valuepublic MarketDataConfig build()
MarketDataConfig instance built from the data in this builder.MarketDataConfig instance built from the data in this builderCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.