Documentation of 'org.apache.commons.math.exception.util.MessageFactory' Java class
MessageFactory
org.apache.commons.math.exception.util

Class MessageFactory



  • public class MessageFactory
    extends java.lang.Object
    Class for constructing localized messages.
    Since:
    2.2
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String buildMessage(java.util.Locale locale, Localizable specific, Localizable general, java.lang.Object... arguments)
      Builds a message string by from two patterns (specific and general) and an argument list.
      static java.lang.String buildMessage(java.util.Locale locale, Localizable pattern, java.lang.Object... arguments)
      Builds a message string by from a pattern and its arguments.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • buildMessage

        public static java.lang.String buildMessage(java.util.Locale locale,
                                                    Localizable pattern,
                                                    java.lang.Object... arguments)
        Builds a message string by from a pattern and its arguments.
        Parameters:
        locale - Locale in which the message should be translated.
        pattern - Format specifier.
        arguments - Format arguments.
        Returns:
        a localized message string.
      • buildMessage

        public static java.lang.String buildMessage(java.util.Locale locale,
                                                    Localizable specific,
                                                    Localizable general,
                                                    java.lang.Object... arguments)
        Builds a message string by from two patterns (specific and general) and an argument list.
        Parameters:
        locale - Locale in which the message should be translated.
        specific - Format specifier (may be null).
        general - Format specifier (may be null).
        arguments - Format arguments. They will be substituted in both the general and specific format specifiers.
        Returns:
        a localized message string.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.