public final class ImmutableRatesProviderBuilder extends Object
ImmutableRatesProvider| Modifier and Type | Method and Description |
|---|---|
ImmutableRatesProvider |
build()
Completes the builder, returning the provider.
|
ImmutableRatesProviderBuilder |
discountCurve(Currency currency,
Curve discountCurve)
Adds a discount curve to the provider.
|
ImmutableRatesProviderBuilder |
discountCurves(Map<Currency,? extends Curve> discountCurves)
Adds discount curves to the provider.
|
ImmutableRatesProviderBuilder |
fxRateProvider(FxRateProvider fxRateProvider)
Sets the FX rate provider.
|
ImmutableRatesProviderBuilder |
iborIndexCurve(IborIndex index,
Curve forwardCurve)
Adds an Ibor index forward curve to the provider.
|
ImmutableRatesProviderBuilder |
iborIndexCurve(IborIndex index,
Curve forwardCurve,
LocalDateDoubleTimeSeries timeSeries)
Adds an Ibor index forward curve to the provider with associated time-series.
|
ImmutableRatesProviderBuilder |
indexCurve(Index index,
Curve forwardCurve)
Adds an index forward curve to the provider.
|
ImmutableRatesProviderBuilder |
indexCurve(Index index,
Curve forwardCurve,
LocalDateDoubleTimeSeries timeSeries)
Adds an index forward curve to the provider with associated time-series.
|
ImmutableRatesProviderBuilder |
indexCurves(Map<? extends Index,? extends Curve> indexCurves)
Adds index forward curves to the provider with associated time-series.
|
ImmutableRatesProviderBuilder |
indexCurves(Map<? extends Index,? extends Curve> indexCurves,
Map<? extends Index,LocalDateDoubleTimeSeries> timeSeries)
Adds index forward curves to the provider with associated time-series.
|
ImmutableRatesProviderBuilder |
overnightIndexCurve(OvernightIndex index,
Curve forwardCurve)
Adds an Overnight index forward curve to the provider.
|
ImmutableRatesProviderBuilder |
overnightIndexCurve(OvernightIndex index,
Curve forwardCurve,
LocalDateDoubleTimeSeries timeSeries)
Adds an Overnight index forward curve to the provider with associated time-series.
|
ImmutableRatesProviderBuilder |
priceIndexCurve(PriceIndex index,
Curve forwardCurve)
Adds a Price index forward curve to the provider.
|
ImmutableRatesProviderBuilder |
priceIndexCurve(PriceIndex index,
Curve forwardCurve,
LocalDateDoubleTimeSeries timeSeries)
Adds an index forward curve to the provider with associated time-series.
|
ImmutableRatesProviderBuilder |
timeSeries(Index index,
LocalDateDoubleTimeSeries timeSeries)
Adds a time-series to the provider.
|
ImmutableRatesProviderBuilder |
timeSeries(Map<? extends Index,LocalDateDoubleTimeSeries> timeSeries)
Adds time-series to the provider.
|
public ImmutableRatesProviderBuilder fxRateProvider(FxRateProvider fxRateProvider)
fxRateProvider - the rate providerpublic ImmutableRatesProviderBuilder discountCurve(Currency currency, Curve discountCurve)
This adds the specified discount curve to the provider.
This operates using Map.put(Object, Object) semantics using the currency as the key.
currency - the currency of the curvediscountCurve - the discount curvepublic ImmutableRatesProviderBuilder discountCurves(Map<Currency,? extends Curve> discountCurves)
This adds the specified discount curves to the provider.
This operates using Map.putAll(Map) semantics using the currency as the key.
discountCurves - the discount curvespublic ImmutableRatesProviderBuilder iborIndexCurve(IborIndex index, Curve forwardCurve)
This adds the specified forward curve to the provider.
This operates using Map.put(Object, Object) semantics using the index as the key.
index - the index of the curveforwardCurve - the Ibor index forward curvepublic ImmutableRatesProviderBuilder iborIndexCurve(IborIndex index, Curve forwardCurve, LocalDateDoubleTimeSeries timeSeries)
This adds the specified forward curve and time-series to the provider.
This operates using Map.put(Object, Object) semantics using the index as the key.
index - the index of the curveforwardCurve - the index forward curvetimeSeries - the associated time-seriespublic ImmutableRatesProviderBuilder overnightIndexCurve(OvernightIndex index, Curve forwardCurve)
This adds the specified forward curve to the provider.
This operates using Map.put(Object, Object) semantics using the index as the key.
index - the index of the curveforwardCurve - the Overnight index forward curvepublic ImmutableRatesProviderBuilder overnightIndexCurve(OvernightIndex index, Curve forwardCurve, LocalDateDoubleTimeSeries timeSeries)
This adds the specified forward curve and time-series to the provider.
This operates using Map.put(Object, Object) semantics using the index as the key.
index - the index of the curveforwardCurve - the index forward curvetimeSeries - the associated time-seriespublic ImmutableRatesProviderBuilder priceIndexCurve(PriceIndex index, Curve forwardCurve)
This adds the specified forward curve to the provider.
This operates using Map.put(Object, Object) semantics using the index as the key.
index - the index of the curveforwardCurve - the Price index forward curvepublic ImmutableRatesProviderBuilder priceIndexCurve(PriceIndex index, Curve forwardCurve, LocalDateDoubleTimeSeries timeSeries)
This adds the specified forward curve and time-series to the provider.
This operates using Map.put(Object, Object) semantics using the index as the key.
index - the index of the curveforwardCurve - the index forward curvetimeSeries - the associated time-seriespublic ImmutableRatesProviderBuilder indexCurve(Index index, Curve forwardCurve)
This adds the specified forward curve to the provider.
This operates using Map.put(Object, Object) semantics using the index as the key.
Any index may be used, however RatesProvider only directly supports
Ibor, Overnight and Price indices.
index - the index of the curveforwardCurve - the Ibor index forward curvepublic ImmutableRatesProviderBuilder indexCurve(Index index, Curve forwardCurve, LocalDateDoubleTimeSeries timeSeries)
This adds the specified forward curve to the provider.
This operates using Map.put(Object, Object) semantics using the index as the key.
Any index may be used, however RatesProvider only directly supports
Ibor, Overnight and Price indices.
index - the index of the curveforwardCurve - the Ibor index forward curvetimeSeries - the time-seriespublic ImmutableRatesProviderBuilder indexCurves(Map<? extends Index,? extends Curve> indexCurves)
This adds the specified index forward curves to the provider.
This operates using Map.putAll(Map) semantics using the index as the key.
Any index may be used, however RatesProvider only directly supports
Ibor, Overnight and Price indices.
indexCurves - the index forward curvespublic ImmutableRatesProviderBuilder indexCurves(Map<? extends Index,? extends Curve> indexCurves, Map<? extends Index,LocalDateDoubleTimeSeries> timeSeries)
This adds the specified index forward curves to the provider.
This operates using Map.putAll(Map) semantics using the index as the key.
Any index may be used, however RatesProvider only directly supports
Ibor, Overnight and Price indices.
indexCurves - the index forward curvestimeSeries - the associated time-seriespublic ImmutableRatesProviderBuilder timeSeries(Index index, LocalDateDoubleTimeSeries timeSeries)
This adds the specified time-series to the provider.
This operates using Map.put(Object, Object) semantics using the index as the key.
Any index may be used, however RatesProvider only directly supports
Ibor, Overnight and Price indices.
index - the FX indextimeSeries - the FX index time-seriespublic ImmutableRatesProviderBuilder timeSeries(Map<? extends Index,LocalDateDoubleTimeSeries> timeSeries)
This adds the specified time-series to the provider.
This operates using Map.putAll(Map) semantics using the index as the key.
Any index may be used, however RatesProvider only directly supports
Ibor, Overnight and Price indices.
timeSeries - the FX index time-seriespublic ImmutableRatesProvider build()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.