public final class MarketDataConfig extends Object implements org.joda.beans.ImmutableBean, Serializable
This class is effectively a map of arbitrary objects, keyed by their type and a name.
| Modifier and Type | Class and Description |
|---|---|
static class |
MarketDataConfig.Meta
The meta-bean for
MarketDataConfig. |
| Modifier and Type | Method and Description |
|---|---|
static MarketDataConfigBuilder |
builder()
Returns a mutable builder for building an instance of
MarketDataConfig. |
static MarketDataConfig |
empty()
Returns an empty set of market data configuration.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
find(Class<T> type)
Returns an item of configuration that is the default of its type.
|
<T> T |
get(Class<T> type)
Returns an item of configuration that is the default of its type.
|
<T> T |
get(Class<T> type,
String name)
Returns the configuration object with the specified type and name if available.
|
<T> T |
get(Class<T> type,
TypedString<?> name)
Returns the configuration object with the specified type and name if available.
|
int |
hashCode() |
static MarketDataConfig.Meta |
meta()
The meta-bean for
MarketDataConfig. |
MarketDataConfig.Meta |
metaBean() |
String |
toString() |
public static MarketDataConfig empty()
public static MarketDataConfigBuilder builder()
MarketDataConfig.MarketDataConfigpublic <T> T get(Class<T> type, String name)
T - the type of the configuration objecttype - the type of the configuration objectname - the name of the configuration objectIllegalArgumentException - if no configuration is found with the specified type and namepublic <T> T get(Class<T> type, TypedString<?> name)
T - the type of the configuration objecttype - the type of the configuration objectname - the name of the configuration objectIllegalArgumentException - if no configuration is found with the specified type and namepublic <T> T get(Class<T> type)
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 of the configuration objecttype - the type of the configuration objectIllegalArgumentException - if no configuration is found with the specified type and namepublic <T> Optional<T> find(Class<T> type)
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 of the configuration objecttype - the type of the configuration objectpublic static MarketDataConfig.Meta meta()
MarketDataConfig.public MarketDataConfig.Meta metaBean()
metaBean in interface org.joda.beans.BeanCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.