public class ObjectMessage extends Object implements Message, StringBuilderFormattable
Constructor and Description |
---|
ObjectMessage(Object obj)
Creates the ObjectMessage.
|
Modifier and Type | Method and Description |
---|---|
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 object formatted using its toString method.
|
String |
getFormattedMessage()
Returns the formatted object message.
|
Object |
getParameter()
Returns the object parameter.
|
Object[] |
getParameters()
Returns the object as if it were a parameter.
|
Throwable |
getThrowable()
Gets the message if it is a throwable.
|
int |
hashCode() |
String |
toString() |
public ObjectMessage(Object obj)
obj
- The Object to format.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 String getFormat()
public Object getParameter()
public Object[] getParameters()
getParameters
in interface Message
public Throwable getThrowable()
getThrowable
in interface Message
Copyright © 2021 JBoss by Red Hat. All rights reserved.