Class ObjectMessage

    • Constructor Detail

      • ObjectMessage

        public ObjectMessage(Object obj)
        Creates the ObjectMessage.
        Parameters:
        obj - The Object to format.
    • Method Detail

      • getFormattedMessage

        public String getFormattedMessage()
        Returns the formatted object message.
        Specified by:
        getFormattedMessage in interface  Message
        Returns:
        the formatted object message.
      • getFormat

        public String getFormat()
        Returns the object formatted using its toString method.
        Specified by:
        getFormat in interface  Message
        Returns:
        the String representation of the object.
      • getParameters

        public Object[] getParameters()
        Returns the object as if it were a parameter.
        Specified by:
        getParameters in interface  Message
        Returns:
        The object.
      • equals

        public boolean equals(Object o)
      • hashCode

        public int hashCode()
      • toString

        public String toString()
      • getThrowable

        public Throwable getThrowable()
        Gets the message if it is a throwable.
        Specified by:
        getThrowable in interface  Message
        Returns:
        the message if it is a throwable.