public class MessageKeyLocalizedMessageBuilder extends Object
MessageKeyLocalizedMessage from message key pre- and suffixes.
Note: this implementation is not thread-safe.
| Constructor and Description |
|---|
MessageKeyLocalizedMessageBuilder(String messageKeyBase,
Object... arguments)
Create a new builder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendArguments(Object... arguments)
Append the provided arguments to those passed to the constructor or previous calls to this
method.
|
MessageKeyLocalizedMessage |
build() |
void |
prependArguments(Object... arguments)
Prepend the provided arguments to those passed to the constructor or previous calls to this
method.
|
void |
setPrefix(String messageKeyPrefix)
Prepend the provided string to the messageKeyBase that was passed to the constructor.
|
void |
setSuffix(String messageKeySuffix)
Append the provided string to the messageKeyBase that was passed to the constructor.
|
public void appendArguments(Object... arguments)
arguments - the message arguments to appendpublic MessageKeyLocalizedMessage build()
public void prependArguments(Object... arguments)
arguments - the message arguments to prependpublic void setPrefix(String messageKeyPrefix)
messageKeyPrefix - the prefix to prependpublic void setSuffix(String messageKeySuffix)
messageKeySuffix - the suffix to appendCopyright © 2019 Communote team. All rights reserved.