Top Description Constructors Methods
javax.money

pack-priv final Class DefaultMonetaryCurrenciesSingletonSpi

extends Object
implements MonetaryCurrenciesSingletonSpi
Class Inheritance
All Implemented Interfaces
javax.money.spi.MonetaryCurrenciesSingletonSpi
Imports
javax.money.spi.Bootstrap, .CurrencyProviderSpi, .MonetaryCurrenciesSingletonSpi, java.util.ArrayList, .Collections, .HashSet, .List, .Set, java.util.logging.Level, .Logger

Factory singleton for CurrencyUnit instances as provided by the different registered javax.money.spi.CurrencyProviderSpi instances.

This class is thread safe.

Author
Anatole Tresch
Version
0.8

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Set<CurrencyUnit>
getCurrencies(CurrencyQuery
The currency query, not null.
query
)

Implements javax.money.spi.MonetaryCurrenciesSingletonSpi.getCurrencies.

Access all currencies matching the given query.
public List<String>

Returns:

the default provider chain, never null.
getDefaultProviderChain
()

Implements javax.money.spi.MonetaryCurrenciesSingletonSpi.getDefaultProviderChain.

This default implementation simply returns all providers defined in arbitrary order.
public Set<String>

Returns:

the names of the currently loaded providers, never null.
getProviderNames
()

Implements javax.money.spi.MonetaryCurrenciesSingletonSpi.getProviderNames.

Get the names of the currently loaded providers.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DefaultMonetaryCurrenciesSingletonSpiback to summary
pack-priv DefaultMonetaryCurrenciesSingletonSpi()

Method Detail

getCurrenciesback to summary
public Set<CurrencyUnit> getCurrencies(CurrencyQuery query)

Implements javax.money.spi.MonetaryCurrenciesSingletonSpi.getCurrencies.

Doc from javax.money.spi.MonetaryCurrenciesSingletonSpi.getCurrencies.

Access all currencies matching the given query.

Parameters
query:CurrencyQuery

The currency query, not null.

Returns:Set<CurrencyUnit>

a set of all currencies found, never null.

Annotations
@Override
getDefaultProviderChainback to summary
public List<String> getDefaultProviderChain()

Implements javax.money.spi.MonetaryCurrenciesSingletonSpi.getDefaultProviderChain.

This default implementation simply returns all providers defined in arbitrary order.

Returns:List<String>

the default provider chain, never null.

Annotations
@Override
getProviderNamesback to summary
public Set<String> getProviderNames()

Implements javax.money.spi.MonetaryCurrenciesSingletonSpi.getProviderNames.

Get the names of the currently loaded providers.

Returns:Set<String>

the names of the currently loaded providers, never null.

Annotations
@Override