|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.message.SimpleMessage
public class SimpleMessage
The simplest possible implementation of Message. It just returns the String given as the constructor argument.
Constructor Summary | |
---|---|
SimpleMessage()
Basic constructor. |
|
SimpleMessage(String message)
Constructor that includes the message. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
String |
getFormat()
Returns the message. |
String |
getFormattedMessage()
Returns the message. |
Object[] |
getParameters()
Returns null since there are no parameters. |
Throwable |
getThrowable()
Always returns null. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleMessage()
public SimpleMessage(String message)
message
- The String message.Method Detail |
---|
public String getFormattedMessage()
getFormattedMessage
in interface Message
public String getFormat()
getFormat
in interface Message
public Object[] getParameters()
getParameters
in interface Message
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public Throwable getThrowable()
getThrowable
in interface Message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.