Skip to content

CurrencyProviderSpi.getCurrencies should specify first criteria wins #116

Open
@marschall

Description

@marschall

CurrencyQuery allows to specify several criteria eg. currency codes and countries eg. "USD" and "es_EC"
However javax.money.spi.CurrencyProviderSpi#getCurrencies(CurrencyQuery) does not specify what happens when multiple criteria are set. JDKCurrencyProvider currently behaves like this:

  1. If a currency code is specified search by currency code, otherwise
  2. If a country is specified search by country, otherwise
  3. If a numeric code is specified search by numeric code, otherwise
  4. return everything

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions