public final class BuiltMarketData extends Object implements MarketData, org.joda.beans.ImmutableBean
The MarketDataFactory can be used to build market data from external
sources and by calibration. This implementation of MarketData
provides the result, and includes all the market data, such as quotes and curves.
This implementation differs from ImmutableMarketData because it
stores the failures that occurred during the build process.
These errors are exposed to users when data is queried.
| Modifier and Type | Class and Description |
|---|---|
static class |
BuiltMarketData.Meta
The meta-bean for
BuiltMarketData. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsValue(MarketDataId<?> id) |
boolean |
equals(Object obj) |
<T> Set<MarketDataId<T>> |
findIds(MarketDataName<T> name) |
<T> Optional<T> |
findValue(MarketDataId<T> id) |
Set<MarketDataId<?>> |
getIds() |
LocalDateDoubleTimeSeries |
getTimeSeries(ObservableId id) |
ImmutableMap<MarketDataId<?>,Failure> |
getTimeSeriesFailures()
Gets the failures that occurred when building time series of market data values.
|
Set<ObservableId> |
getTimeSeriesIds() |
BuiltScenarioMarketData |
getUnderlying()
Gets the underlying market data.
|
LocalDate |
getValuationDate() |
<T> T |
getValue(MarketDataId<T> id) |
ImmutableMap<MarketDataId<?>,Failure> |
getValueFailures()
Gets the failures when building single market data values.
|
int |
hashCode() |
static BuiltMarketData.Meta |
meta()
The meta-bean for
BuiltMarketData. |
BuiltMarketData.Meta |
metaBean() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcombinedWith, empty, of, of, withValuepublic LocalDate getValuationDate()
getValuationDate in interface MarketDatapublic boolean containsValue(MarketDataId<?> id)
containsValue in interface MarketDatapublic <T> T getValue(MarketDataId<T> id)
getValue in interface MarketDatapublic <T> Optional<T> findValue(MarketDataId<T> id)
findValue in interface MarketDatapublic Set<MarketDataId<?>> getIds()
getIds in interface MarketDatapublic <T> Set<MarketDataId<T>> findIds(MarketDataName<T> name)
findIds in interface MarketDatapublic Set<ObservableId> getTimeSeriesIds()
getTimeSeriesIds in interface MarketDatapublic LocalDateDoubleTimeSeries getTimeSeries(ObservableId id)
getTimeSeries in interface MarketDatapublic ImmutableMap<MarketDataId<?>,Failure> getValueFailures()
public ImmutableMap<MarketDataId<?>,Failure> getTimeSeriesFailures()
public static BuiltMarketData.Meta meta()
BuiltMarketData.public BuiltMarketData.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic BuiltScenarioMarketData getUnderlying()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.