Top Description Fields Constructors Methods
org.javamoney.moneta.spi

public Class DefaultRoundingProvider

extends Object
implements RoundingProviderSpi
Class Inheritance
All Implemented Interfaces
javax.money.spi.RoundingProviderSpi
Imports
javax.money.*, javax.money.spi.RoundingProviderSpi, java.math.MathContext, .RoundingMode, java.time.LocalDate, .LocalDateTime, java.util.*

Default implementation of a javax.money.spi.RoundingProviderSpi that creates instances of .javamoney.moneta.format.DefaultRounding that relies on the default fraction units defined by .Currency#getDefaultFractionDigits().

Field Summary

Modifier and TypeField and Description
private static final String
private Set<String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getProviderName()

Overrides default javax.money.spi.RoundingProviderSpi.getProviderName.

Get the provider's unique name.

public MonetaryRounding

Returns:

the (shared) default rounding instances matching, never null.
getRounding
(RoundingQuery roundingQuery)

Implements javax.money.spi.RoundingProviderSpi.getRounding.

Evaluate the rounding that match the given query.

public Set<String>
getRoundingNames()

Implements javax.money.spi.RoundingProviderSpi.getRoundingNames.

Access the ids of the roundings defined by this provider.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEFAULT_ROUNDING_NAMEback to summary
private static final String DEFAULT_ROUNDING_NAME
roundingsNamesback to summary
private Set<String> roundingsNames

Constructor Detail

DefaultRoundingProviderback to summary
public DefaultRoundingProvider()

Method Detail

getProviderNameback to summary
public String getProviderName()

Overrides default javax.money.spi.RoundingProviderSpi.getProviderName.

Doc from javax.money.spi.RoundingProviderSpi.getProviderName.

Get the provider's unique name.

Annotations
@Override
getRoundingback to summary
public MonetaryRounding getRounding(RoundingQuery roundingQuery)

Implements javax.money.spi.RoundingProviderSpi.getRounding.

Evaluate the rounding that match the given query.

Returns:MonetaryRounding

the (shared) default rounding instances matching, never null.

getRoundingNamesback to summary
public Set<String> getRoundingNames()

Implements javax.money.spi.RoundingProviderSpi.getRoundingNames.

Doc from javax.money.spi.RoundingProviderSpi.getRoundingNames.

Access the ids of the roundings defined by this provider.

Annotations
@Override