- java.lang.Object
-
- org.apache.logging.log4j.message.ObjectArrayMessage
-
-
Constructor Summary
Constructors Constructor Description ObjectArrayMessage(Object... obj)
Creates the ObjectMessage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
Returns null.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
ObjectArrayMessage
public ObjectArrayMessage(Object... obj)
Creates the ObjectMessage.- Parameters:
obj
- The Object to format.
-
-
Method Detail
-
getFormat
public String getFormat()
Returns the object formatted using its toString method.
-
getFormattedMessage
public String getFormattedMessage()
Returns the formatted object message.- Specified by:
getFormattedMessage
in interfaceMessage
- Returns:
- the formatted object message.
-
getParameters
public Object[] getParameters()
Returns the object as if it were a parameter.- Specified by:
getParameters
in interfaceMessage
- Returns:
- The object.
-
getThrowable
public Throwable getThrowable()
Returns null.- Specified by:
getThrowable
in interfaceMessage
- Returns:
- null.
-
-