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, wait
chars, codePoints
public SimpleMessage()
public SimpleMessage(String message)
message
- The String message.public SimpleMessage(CharSequence charSequence)
charSequence
- The CharSequence message.public String getFormattedMessage()
getFormattedMessage
in interface Message
public void formatTo(StringBuilder buffer)
StringBuilderFormattable
StringBuilder
, ideally without allocating
temporary objects.formatTo
in interface StringBuilderFormattable
buffer
- the StringBuilder to write intopublic Object[] getParameters()
getParameters
in interface Message
public String toString()
toString
in interface CharSequence
toString
in class Object
public Throwable getThrowable()
getThrowable
in interface Message
public int length()
length
in interface CharSequence
public char charAt(int index)
charAt
in interface CharSequence
public CharSequence subSequence(int start, int end)
subSequence
in interface CharSequence
Copyright © 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.