Class NoOpCurrencyConversionService

    • Constructor Detail

      • NoOpCurrencyConversionService

        public NoOpCurrencyConversionService()
    • Method Detail

      • canCovert

        public boolean canCovert​(javax.money.CurrencyUnit from,
                                 javax.money.CurrencyUnit to)
        Always returns false
        Specified by:
        canCovert in interface CurrencyConversionService
        Parameters:
        from - The currency to convert from.
        to - The currency to convert to.
        Returns:
      • convert

        public javax.money.MonetaryAmount convert​(javax.money.MonetaryAmount fromAmount,
                                                  javax.money.CurrencyUnit toCurrency)
        Always throws UnsupportedOperationException. Callers should call canConvert prior to calling the convert operation which in the case of this provider will always return false.
        Specified by:
        convert in interface CurrencyConversionService
        Parameters:
        fromAmount -
        toCurrency -
        Returns:
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object