java.util.Formatter .
Note to implementors:
This class implements the unrolled args API even though StringFormattedMessage does not. This leaves the room for StringFormattedMessage to unroll itself later.
| Modifier and Type | Field and Description |
|---|---|
| private transient Object[] | |
| private transient String | |
| private static final int | |
| private final Locale | |
| private static final Logger | |
| private String | |
| private static final long | |
| private String[] | |
| private transient Throwable |
| Access | Constructor and Description |
|---|---|
| public | StringFormattedMessage(final Locale
the locale for this message format locale, final String the pattern for this message format messagePattern, final Object... The objects to format arguments)Constructs a message. |
| public | StringFormattedMessage(final String
the pattern for this message format messagePattern, final Object... The objects to format arguments)Constructs a message. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| protected String | |
| public String | Returns: the message pattern.Implements org. Returns the message pattern. |
| public String | Returns: the formatted message.Implements org. Returns the formatted message. |
| public Object[] | Returns: the message parameters.Implements org. Returns the message parameters. |
| public Throwable | Returns: the Throwable.Implements org. Return the throwable passed to the Message. |
| public int | |
| private void | |
| public String | |
| private void |
| argArray | back to summary |
|---|---|
| private transient Object[] argArray | |
| formattedMessage | back to summary |
|---|---|
| private transient String formattedMessage | |
| HASHVAL | back to summary |
|---|---|
| private static final int HASHVAL | |
| locale | back to summary |
|---|---|
| private final Locale locale | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| messagePattern | back to summary |
|---|---|
| private String messagePattern | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| stringArgs | back to summary |
|---|---|
| private String[] stringArgs | |
| throwable | back to summary |
|---|---|
| private transient Throwable throwable | |
| StringFormattedMessage | back to summary |
|---|---|
| public StringFormattedMessage(final Locale locale, final String messagePattern, final Object... arguments) Constructs a message. | |
| StringFormattedMessage | back to summary |
|---|---|
| public StringFormattedMessage(final String messagePattern, final Object... arguments) Constructs a message. | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| formatMessage | back to summary |
|---|---|
| protected String formatMessage(final String msgPattern, final Object... args) | |
| getFormat | back to summary |
|---|---|
| public String getFormat() Implements org. Returns the message pattern. | |
| getFormattedMessage | back to summary |
|---|---|
| public String getFormattedMessage() Implements org. Returns the formatted message. | |
| getParameters | back to summary |
|---|---|
| public Object[] getParameters() Implements org. Returns the message parameters. | |
| getThrowable | back to summary |
|---|---|
| public Throwable getThrowable() Implements org. Return the throwable passed to the Message. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| readObject | back to summary |
|---|---|
| private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException | |
| 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- | |
| writeObject | back to summary |
|---|---|
| private void writeObject(final ObjectOutputStream out) throws IOException | |