Module java.money
Package javax.money

Class DefaultMonetaryRoundingsSingletonSpi

    • Constructor Detail

      • DefaultMonetaryRoundingsSingletonSpi

        public DefaultMonetaryRoundingsSingletonSpi()
    • Method Detail

      • createRoundingQueryBuilder

        public RoundingQueryBuilder createRoundingQueryBuilder()
        Creates an rounding instance using RoundingMode.UP rounding.
        Returns:
        the corresponding MonetaryOperator implementing the rounding.
        Throws:
        MonetaryException - if no such rounding could be evaluated.
      • getProviderNames

        public java.util.Set<java.lang.String> getProviderNames()
        Get the names of all current registered providers.
        Specified by:
        getProviderNames in interface MonetaryRoundingsSingletonSpi
        Returns:
        the names of all current registered providers, never null.
      • getRoundingNames

        public java.util.Set<java.lang.String> getRoundingNames​(java.lang.String... providers)
        Allows to access the identifiers of the current defined roundings.
        Specified by:
        getRoundingNames in interface MonetaryRoundingsSingletonSpi
        Parameters:
        providers - the providers and ordering to be used. By default providers and ordering as defined in #getDefaultProviders is used, not null.
        Returns:
        the set of custom rounding ids, never null.