Module java.money

Interface MonetaryAmountFormatProviderSpi


public interface MonetaryAmountFormatProviderSpi
SPI (formatting) providing MonetaryAmountFormat instances.
  • Method Details

    • getProviderName

      default String getProviderName()
      Access the provider's name.
      Returns:
      this provider's name, not null.
    • getAmountFormats

      Collection<MonetaryAmountFormat> getAmountFormats(AmountFormatQuery formatQuery)
      Create a new MonetaryAmountFormat for the given input.
      Parameters:
      formatQuery - The AmountFormatContext to be used.
      Returns:
      An according MonetaryAmountFormat instance, or null, which delegates the request to subsequent MonetaryAmountFormatProviderSpi instances registered.
    • getAvailableLocales

      Set<Locale> getAvailableLocales()
      Gets a list with available locales for this format provider.
      Returns:
      list of available locales, never null.
    • getAvailableFormatNames

      Set<String> getAvailableFormatNames()
      Gets a list with available format names for this format provider.
      Returns:
      list of available formats, never null.