public abstract class BaseMonetaryAmountsSingletonQuerySpi extends Object implements MonetaryAmountsSingletonQuerySpi
Monetary singleton, implementing
the query functionality for amounts.| Constructor and Description |
|---|
BaseMonetaryAmountsSingletonQuerySpi() |
| Modifier and Type | Method and Description |
|---|---|
MonetaryAmountFactory |
getAmountFactory(MonetaryAmountFactoryQuery query)
Executes the query and returns the
MonetaryAmountFactory implementation type found,
if there is only one type. |
Class<? extends MonetaryAmount> |
getAmountType(MonetaryAmountFactoryQuery query)
Executes the query and returns the
MonetaryAmount implementation type found,
if there is only one type. |
Collection<Class<? extends MonetaryAmount>> |
getAmountTypes(MonetaryAmountFactoryQuery query)
Executes the query and returns the
MonetaryAmount implementation types found. |
boolean |
isAvailable(MonetaryAmountFactoryQuery query)
Checks if an
MonetaryAmountFactory is matching the given query. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAmountFactoriespublic BaseMonetaryAmountsSingletonQuerySpi()
public boolean isAvailable(MonetaryAmountFactoryQuery query)
MonetaryAmountFactory is matching the given query.isAvailable in interface MonetaryAmountsSingletonQuerySpiquery - the factory query, not null.MonetaryAmountFactory matches the query.public Class<? extends MonetaryAmount> getAmountType(MonetaryAmountFactoryQuery query)
MonetaryAmount implementation type found,
if there is only one type.
If multiple types match the query, the first one is selected.getAmountType in interface MonetaryAmountsSingletonQuerySpiquery - the factory query, not null.public Collection<Class<? extends MonetaryAmount>> getAmountTypes(MonetaryAmountFactoryQuery query)
MonetaryAmount implementation types found.getAmountTypes in interface MonetaryAmountsSingletonQuerySpiquery - the factory query, not null.public MonetaryAmountFactory getAmountFactory(MonetaryAmountFactoryQuery query)
MonetaryAmountFactory implementation type found,
if there is only one type. If multiple types match the query, the first one is selected.getAmountFactory in interface MonetaryAmountsSingletonQuerySpiquery - the factory query, not null.Copyright © 2012–2020 JavaMoney. All rights reserved.