Top Description Constructors Methods
org.javamoney.moneta.spi

public final Class RoundedMoneyAmountFactoryProvider

extends Object
implements MonetaryAmountFactoryProviderSpi<RoundedMoney>
Class Inheritance
All Implemented Interfaces
javax.money.spi.MonetaryAmountFactoryProviderSpi
Imports
javax.money.MonetaryAmountFactory, .MonetaryContext, javax.money.spi.MonetaryAmountFactoryProviderSpi, org.javamoney.moneta.RoundedMoney

Implementation of MonetaryAmountFactoryProviderSpi creating instances of RoundedMoneyAmountFactory.
Author
Anatole Tresch

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public MonetaryAmountFactory<RoundedMoney>
public Class<RoundedMoney>
getAmountType()

Implements javax.money.spi.MonetaryAmountFactoryProviderSpi.getAmountType.

Get the concrete amount type created by javax.money.MonetaryAmountFactory instances provided.

public MonetaryContext
public MonetaryContext
getMaximalMonetaryContext()

Overrides default javax.money.spi.MonetaryAmountFactoryProviderSpi.getMaximalMonetaryContext.

Returns the maximal MonetaryContext supported, for requests that exceed these maximal capabilities, an ArithmeticException must be thrown.

public MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy
getQueryInclusionPolicy()

Overrides default javax.money.spi.MonetaryAmountFactoryProviderSpi.getQueryInclusionPolicy.

Method that determines if this factory should be considered for general evaluation of matching MonetaryAmount implementation types when calling javax.money.Monetary#getAmountFactory(javax.money.MonetaryAmountFactoryQuery).

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RoundedMoneyAmountFactoryProviderback to summary
public RoundedMoneyAmountFactoryProvider()

Method Detail

createMonetaryAmountFactoryback to summary
public MonetaryAmountFactory<RoundedMoney> createMonetaryAmountFactory()

Implements javax.money.spi.MonetaryAmountFactoryProviderSpi.createMonetaryAmountFactory.

Doc from javax.money.spi.MonetaryAmountFactoryProviderSpi.createMonetaryAmountFactory.

Access a javax.money.MonetaryAmountFactory given the required context.

Annotations
@Override
getAmountTypeback to summary
public Class<RoundedMoney> getAmountType()

Implements javax.money.spi.MonetaryAmountFactoryProviderSpi.getAmountType.

Doc from javax.money.spi.MonetaryAmountFactoryProviderSpi.getAmountType.

Get the concrete amount type created by javax.money.MonetaryAmountFactory instances provided.

Annotations
@Override
getDefaultMonetaryContextback to summary
public MonetaryContext getDefaultMonetaryContext()

Implements javax.money.spi.MonetaryAmountFactoryProviderSpi.getDefaultMonetaryContext.

Doc from javax.money.spi.MonetaryAmountFactoryProviderSpi.getDefaultMonetaryContext.

Returns the default MonetaryContext used, when no MonetaryContext is provided.

The default context is not allowed to exceed the capabilities of the maximal MonetaryContext supported.

Annotations
@Override
getMaximalMonetaryContextback to summary
public MonetaryContext getMaximalMonetaryContext()

Overrides default javax.money.spi.MonetaryAmountFactoryProviderSpi.getMaximalMonetaryContext.

Doc from javax.money.spi.MonetaryAmountFactoryProviderSpi.getMaximalMonetaryContext.

Returns the maximal MonetaryContext supported, for requests that exceed these maximal capabilities, an ArithmeticException must be thrown.

Annotations
@Override
getQueryInclusionPolicyback to summary
public MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy getQueryInclusionPolicy()

Overrides default javax.money.spi.MonetaryAmountFactoryProviderSpi.getQueryInclusionPolicy.

Doc from javax.money.spi.MonetaryAmountFactoryProviderSpi.getQueryInclusionPolicy.

Method that determines if this factory should be considered for general evaluation of matching MonetaryAmount implementation types when calling javax.money.Monetary#getAmountFactory(javax.money.MonetaryAmountFactoryQuery).

Annotations
@Override