Object CurrencyUtils

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String formatAmount(Amount amount, Locale locale) Format the Amount to be displayed to the user based on the Locale.
      final Unit assertCurrency(String currencyCode)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • formatAmount

         final String formatAmount(Amount amount, Locale locale)

        Format the Amount to be displayed to the user based on the Locale.

        Parameters:
        amount - The amount with currency and value.
        locale - The locale the amount will be formatted with.
        Returns:

        A formatted string displaying currency and value.