| Modifier and Type | Field and Description |
|---|---|
| private transient Object | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements org. Resets the object to a clean state. |
| public <S> void | forEachParameter(final ParameterConsumer<S>
The action to be performed for each key-value pair in this collection action, final S the object to be passed as the third parameter to each invocation on the
specified ParameterConsumer. state)Implements org. Performs the given action for each parameter until all values have been processed or the action throws an exception. |
| public void | formatTo(final StringBuilder
the StringBuilder to write into buffer)Implements org. Writes a text representation of this object into the specified |
| public String | Returns: the String representation of the object.Implements org. Returns the object formatted using its toString method. |
| public String | Returns: the formatted object message.Implements org. Returns the formatted object message. |
| public Object | |
| public short | Returns: 1Implements org. This message has exactly one parameter (the object), so always returns one. |
| public Object[] | Returns: The object.Implements org. Returns the object as if it were a parameter. |
| public Throwable | Returns: the message if it is a throwable.Implements org. Gets the message if it is a throwable. |
| public Message | memento()
Implements org. Returns an immutable snapshot of the current internal state of this reusable message. |
| public void | |
| public Object[] | Returns: the specified arraythe parameter array to return emptyReplacement)Implements org. This message has exactly one parameter (the object), so returns it as the first parameter in the array. |
| public String | |
| private Object |
| obj | back to summary |
|---|---|
| private transient Object obj | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ReusableObjectMessage | back to summary |
|---|---|
| public ReusableObjectMessage() | |
| clear | back to summary |
|---|---|
| public void clear() Implements org. Doc from org. Resets the object to a clean state.
| |
| forEachParameter | back to summary |
|---|---|
| public <S> void forEachParameter(final ParameterConsumer<S> action, final S state) Implements org. Doc from org. Performs the given action for each parameter until all values have been processed or the action throws an exception. The second parameter lets callers pass in a stateful object to be modified with the key-value pairs, so the TriConsumer implementation itself can be stateless and potentially reusable.
| |
| formatTo | back to summary |
|---|---|
| public void formatTo(final StringBuilder buffer) Implements org. Doc from org. Writes a text representation of this object into the specified
| |
| getFormat | back to summary |
|---|---|
| public String getFormat() Implements org. Returns the object formatted using its toString method. | |
| getFormattedMessage | back to summary |
|---|---|
| public String getFormattedMessage() Implements org. Returns the formatted object message. | |
| getParameter | back to summary |
|---|---|
| public Object getParameter() Returns the object parameter.
| |
| getParameterCount | back to summary |
|---|---|
| public short getParameterCount() Implements org. This message has exactly one parameter (the object), so always returns one.
| |
| getParameters | back to summary |
|---|---|
| public Object[] getParameters() Implements org. Returns the object as if it were a parameter. | |
| getThrowable | back to summary |
|---|---|
| public Throwable getThrowable() Implements org. Gets the message if it is a throwable. | |
| memento | back to summary |
|---|---|
| public Message memento() Implements org. Doc from org. Returns an immutable snapshot of the current internal state of this reusable message. The returned snapshot will not be affected by subsequent modifications of this reusable message. | |
| set | back to summary |
|---|---|
| public void set(final Object object) | |
| swapParameters | back to summary |
|---|---|
| public Object[] swapParameters(final Object[] emptyReplacement) Implements org. This message has exactly one parameter (the object), so returns it as the first parameter in the array. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| writeReplace | back to summary |
|---|---|
| private Object writeReplace() | |