Module java.money

Class ConversionQuery

    • Method Detail

      • getRateTypes

        public java.util.Set<RateType> getRateTypes()
        Get the rate types set.
        Returns:
        the rate types set, or an empty array, but never null.
      • getBaseCurrency

        public CurrencyUnit getBaseCurrency()
        Get the base currency. This attribute is optional, when a CurrencyConversion is accessed. It is optional if accessing instances of ExchangeRateProvider. If set it can constraint a CurrencyConversion or ExchangeRateProvider to only support one type of base currency. By default it is not set, hereby determining the base currency by the amount onto which the conversion is applied.
        Returns:
        the base CurrencyUnit, or null.
      • toBuilder

        public ConversionQueryBuilder toBuilder()
        Creates a new Builder preinitialized with values from this instance.
        Returns:
        a new Builder, never null.