Top Description Methods
javax.money.spi

public Interface MonetaryAmountFormatProviderSpi

Imports
javax.money.format.AmountFormatQuery, .MonetaryAmountFormat, java.util.Collection, .Locale, .Set

SPI (formatting) providing MonetaryAmountFormat instances.
Author
Anatole Tresch

Method Summary

Modifier and TypeMethod and Description
public Collection<MonetaryAmountFormat>

Returns:

An according MonetaryAmountFormat instance, or null, which delegates the request to subsequent MonetaryAmountFormatProviderSpi instances registered.
getAmountFormats
(AmountFormatQuery formatQuery)

Create a new MonetaryAmountFormat for the given input.

public Set<String>

Returns:

list of available formats, never null.
getAvailableFormatNames
()

Gets a list with available format names for this format provider.

public Set<Locale>

Returns:

list of available locales, never null.
getAvailableLocales
()

Gets a list with available locales for this format provider.

public default String

Returns:

this provider's name, not null.
getProviderName
()

Access the provider's name.

Method Detail

getAmountFormatsback to summary
public Collection<MonetaryAmountFormat> getAmountFormats(AmountFormatQuery formatQuery)

Create a new MonetaryAmountFormat for the given input.

Parameters
formatQuery:AmountFormatQuery

The javax.money.format.AmountFormatContext to be used.

Returns:Collection<MonetaryAmountFormat>

An according MonetaryAmountFormat instance, or null, which delegates the request to subsequent MonetaryAmountFormatProviderSpi instances registered.

getAvailableFormatNamesback to summary
public Set<String> getAvailableFormatNames()

Gets a list with available format names for this format provider.

Returns:Set<String>

list of available formats, never null.

getAvailableLocalesback to summary
public Set<Locale> getAvailableLocales()

Gets a list with available locales for this format provider.

Returns:Set<Locale>

list of available locales, never null.

getProviderNameback to summary
public default String getProviderName()

Access the provider's name.

Returns:String

this provider's name, not null.