Class BundledExchangeRates
java.lang.Object
com.eqixiac.equinix.design.cost.BundledExchangeRates
- All Implemented Interfaces:
CurrencyConverter
The SDK's bundled reference exchange rates: the European Central Bank's euro reference rates of
2026-11-11 (retrieved 2026-11-12 from
https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml),
plus the AED, which the ECB does not publish, derived from its peg of 3.6725 AED per USD. Loaded from
/json/fx_reference_2026_11.json. Cross rates are computed through the euro. Every rate is
CurrencyConverter.Kind.REFERENCE: an estimate whose converted ranges are widened by
5.0% either side, because the table ages from the day it was bundled.-
Nested Class Summary
Nested classes/interfaces inherited from interface CurrencyConverter
CurrencyConverter.Converted, CurrencyConverter.Kind, CurrencyConverter.RateModifier and TypeInterfaceDescriptionstatic final recordAn amount restated in another currency.static enumWhere a rate came from, in precedence order.static final recordA rate between two currencies. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleWidening applied to lines converted at a bundled rate, either side, in percent. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CurrencyConverter
convertModifier and TypeMethodDescriptiondefault Optional<CurrencyConverter.Converted> convert(BigDecimal amount, String from, String to) Converts an amount.
-
Field Details
-
BAND_PERCENT
public static final double BAND_PERCENTWidening applied to lines converted at a bundled rate, either side, in percent.- See Also:
-
-
Method Details
-
standard
- Returns:
- the bundled table, loaded once
-
asOf
- Returns:
- the date of the bundled rates
-
currencies
-
rate
- Specified by:
ratein interfaceCurrencyConverter- Parameters:
from- ISO 4217 codeto- ISO 4217 code- Returns:
- the rate, or empty when this converter has none for the pair
-
name
- Specified by:
namein interfaceCurrencyConverter- Returns:
- a short name for reasons and diagnostics
-