Class LogUtils


  • public final class LogUtils
    extends Object
    General-purpose utilities.
    Since:
    0.5.0
    Version:
    $Id: LogUtils.java 16154 2012-07-14 16:34:05Z colin $
    Author:
    tlerios@marketcetera.com
    • Constructor Detail

      • LogUtils

        private LogUtils()
        Constructor. It is private so that no instances can be created.
    • Method Detail

      • getListText

        public static String getListText​(Object... list)
        Returns a textual representation of the given object list. A null list is treated as a list containing a single null element.
        Parameters:
        list - The list.
        Returns:
        The textual representation.
      • getSimpleMessage

        public static String getSimpleMessage​(I18NMessageProvider provider,
                                              I18NMessage message,
                                              Object... params)
        Returns a simplified textual representation of the given provider and parameterized message.
        Parameters:
        provider - The message provider.
        message - The message.
        params - The message parameters.
        Returns:
        The textual representation.
      • getSimpleMessage

        public static String getSimpleMessage​(I18NMessage message,
                                              Object... params)
        Returns a simplified textual representation of the parameterized message.
        Parameters:
        message - The message.
        params - The message parameters.
        Returns:
        The textual representation.
      • getSimpleMessage

        public static String getSimpleMessage​(I18NBoundMessage message)
        Returns a simplified textual representation of the parameterized message.
        Parameters:
        message - The message.
        Returns:
        The textual representation.