Class IcuJavaMoneyMessageArgConverter

  • All Implemented Interfaces:
    MessageArgConverter

    public class IcuJavaMoneyMessageArgConverter
    extends Object
    implements MessageArgConverter
    Converts MonetaryAmount to CurrencyAmount.

    If changes are made to the mapped types, this must be reflected in de.codecamp.messages.shared.messageformat.IcuMessageFormatSupport.

    • Constructor Detail

      • IcuJavaMoneyMessageArgConverter

        public IcuJavaMoneyMessageArgConverter()
    • Method Detail

      • convert

        public Object convert​(Object value,
                              Locale locale)
        Description copied from interface: MessageArgConverter
        Converts message arguments from a type that is used in the application to a type that can be handled by the used messsage format.
        Specified by:
        convert in interface MessageArgConverter
        Parameters:
        value - the original value
        locale - the locale
        Returns:
        the converted value