javax.money.convert.ExchangeRates a .ExchangeRateProvider delivers, including the provider's name, rate type and additional data.
By default such a context supports the following attributes:
javax.money.convert.RateType an ExchangeRateProvider supportsInstances of this class are immutable and thread-safe.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final String | KEY_RATE_TYPES
Key used for the rate types attribute. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | ProviderContext(ProviderContextBuilder
the Builder. builder)Private constructor, used by |
| Modifier and Type | Method and Description |
|---|---|
| public Set | |
| public static ProviderContext | |
| public static ProviderContext | Returns: a newProviderContext instance.the provider id, not null. provider)Creates a new ProviderContext based on the provider id and rate type(s). |
| public ProviderContextBuilder |
| KEY_RATE_TYPES | back to summary |
|---|---|
| pack-priv static final String KEY_RATE_TYPES Key used for the rate types attribute. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ProviderContext | back to summary |
|---|---|
| pack-priv ProviderContext(ProviderContextBuilder builder) Private constructor, used by
| |
| getRateTypes | back to summary |
|---|---|
| public Set Get the deferred flag. Exchange rates can be deferred or real.time. | |
| of | back to summary |
|---|---|
| public static ProviderContext of(String provider, RateType rateType, RateType... rateTypes) Creates a new ProviderContext based on the provider id and rate type(s).
| |
| of | back to summary |
|---|---|
| public static ProviderContext of(String provider) Creates a new ProviderContext based on the provider id and rate type(s).
| |
| toBuilder | back to summary |
|---|---|
| public ProviderContextBuilder toBuilder() Creates a
| |