public class SimpleMessage extends Object implements Message, StringBuilderFormattable, CharSequence
| Constructor and Description |
|---|
SimpleMessage()
Basic constructor.
|
SimpleMessage(CharSequence charSequence)
Constructor that includes the message.
|
SimpleMessage(String message)
Constructor that includes the message.
|
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int index) |
boolean |
equals(Object o) |
void |
formatTo(StringBuilder buffer)
Writes a text representation of this object into the specified
StringBuilder, ideally without allocating
temporary objects. |
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() |
int |
length() |
CharSequence |
subSequence(int start,
int end) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitchars, codePointspublic SimpleMessage()
public SimpleMessage(String message)
message - The String message.public SimpleMessage(CharSequence charSequence)
charSequence - The CharSequence message.public String getFormattedMessage()
getFormattedMessage in interface Messagepublic void formatTo(StringBuilder buffer)
StringBuilderFormattableStringBuilder, ideally without allocating
temporary objects.formatTo in interface StringBuilderFormattablebuffer - the StringBuilder to write intopublic Object[] getParameters()
getParameters in interface Messagepublic String toString()
toString in interface CharSequencetoString in class Objectpublic Throwable getThrowable()
getThrowable in interface Messagepublic int length()
length in interface CharSequencepublic char charAt(int index)
charAt in interface CharSequencepublic CharSequence subSequence(int start, int end)
subSequence in interface CharSequenceCopyright © 1999-1969 The 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.