public class ObjectMessage extends Object implements Message
| Constructor and Description |
|---|
ObjectMessage(Object obj)
Creates the ObjectMessage.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getFormat()
Returns the object formatted using its toString method.
|
String |
getFormattedMessage()
Returns the formatted object message.
|
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 Messagepublic String getFormat()
public Object[] getParameters()
getParameters in interface Messagepublic Throwable getThrowable()
getThrowable in interface MessageCopyright © 2006-2016 OPS4J - Open Participation Software for Java. All Rights Reserved.