Interface MessageInterpolator

    • Method Detail

      • interpolate

        String interpolate​(String messageText,
                           Serializable[] arguments,
                           Locale locale)
        Replaces the arguments of the given message with the given arguments.
        Parameters:
        messageText - the message text which has to be interpolated
        arguments - a list of numbered and/or named arguments for the current message
        locale - to use for the formatting
        Returns:
        the final (interpolated) message text if it was possible to replace the parameters with the given arguments, or the unmodified messageText otherwise