ExchangeRate is valid. It allows to define
different settings such as
javax.money.convert.RateType, | Modifier and Type | Field and Description |
|---|---|
| public static final ConversionContext | ANY_CONVERSION
ConversionContext that queries any conversion available. |
| public static final ConversionContext | DEFERRED_CONVERSION
ConversionContext querying for any deferred rates. |
| public static final ConversionContext | HISTORIC_CONVERSION
ConversionContext querying for any historic rates. |
| public static final ConversionContext | OTHER_CONVERSION
ConversionContext querying for any other rates. |
| public static final ConversionContext | REALTIME_CONVERSION
ConversionContext querying for real-time rates. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | ConversionContext(ConversionContextBuilder
the Builder. builder)Private constructor, used by |
| Modifier and Type | Method and Description |
|---|---|
| public static ConversionContext | Returns: a corresponding instance of ConversionContext.the provider context, not null. providerContext, RateType the rate type, not null. rateType)Creates a new ConversionContext for the given |
| public String | Returns: the provider, or {code null}.Overrides javax. |
| public RateType | |
| public static ConversionContext | Returns: a new instance ofConversionContextthe provider name, not provider, RateType nullthe required rate type. rateType)Simple factory method for |
| public static ConversionContext | Returns: a new instance ofConversionContextthe required rate type. rateType)Creates a |
| public static ConversionContext | |
| public ConversionContextBuilder | Returns: a corresponding conversion query builder instance, never null.Creates a conversion query builder with the context data from this context instance. |
| public ConversionQueryBuilder | Returns: a new instance ofConversionQueryBuilder, never null.Creates a query builder based on this context. |
| ANY_CONVERSION | back to summary |
|---|---|
| public static final ConversionContext ANY_CONVERSION ConversionContext that queries any conversion available. | |
| DEFERRED_CONVERSION | back to summary |
|---|---|
| public static final ConversionContext DEFERRED_CONVERSION ConversionContext querying for any deferred rates. | |
| HISTORIC_CONVERSION | back to summary |
|---|---|
| public static final ConversionContext HISTORIC_CONVERSION ConversionContext querying for any historic rates. | |
| OTHER_CONVERSION | back to summary |
|---|---|
| public static final ConversionContext OTHER_CONVERSION ConversionContext querying for any other rates. | |
| REALTIME_CONVERSION | back to summary |
|---|---|
| public static final ConversionContext REALTIME_CONVERSION ConversionContext querying for real-time rates. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ConversionContext | back to summary |
|---|---|
| pack-priv ConversionContext(ConversionContextBuilder builder) Private constructor, used by
| |
| from | back to summary |
|---|---|
| public static ConversionContext from(ProviderContext providerContext, RateType rateType) Creates a new ConversionContext for the given Note for adding additional attributes use
| |
| getProviderName | back to summary |
|---|---|
| public String getProviderName() Overrides javax. Get the provider of this rate. The provider of a rate can have different contexts in different usage scenarios, such as the service type or the stock exchange.
| |
| getRateType | back to summary |
|---|---|
| public RateType getRateType() Get the deferred flag. Exchange rates can be deferred or real.time.
| |
| of | back to summary |
|---|---|
| public static ConversionContext of(String provider, RateType rateType) Simple factory method for
| |
| of | back to summary |
|---|---|
| public static ConversionContext of(RateType rateType) Creates a
| |
| of | back to summary |
|---|---|
| public static ConversionContext of() Simple factory method for
| |
| toBuilder | back to summary |
|---|---|
| public ConversionContextBuilder toBuilder() Creates a conversion query builder with the context data from this context instance.
| |
| toQueryBuilder | back to summary |
|---|---|
| public ConversionQueryBuilder toQueryBuilder() Creates a query builder based on this context.
| |