@Immutable public class BundledMessage extends Object
| Constructor and Description |
|---|
BundledMessage(Class<?> clazz,
String key,
Object... args)
Memorizes the given parameters for use by
toString(). |
BundledMessage(ResourceBundle bundle,
String key,
Object... args)
Memorizes the given parameters for use by
toString(). |
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
Looks up the key in the resource bundle and formats the resulting value
with the parameters provided to the constructor.
|
public BundledMessage(Class<?> clazz, String key, Object... args)
toString().clazz - the class to lookup the resource bundle for.key - the key to lookup in the resource bundle.args - the parameters for the string value in the resource bundle.
Note that this parameter is not copied!public BundledMessage(ResourceBundle bundle, String key, Object... args)
toString().bundle - the resource bundle.key - the key to lookup in the resource bundle.args - the parameters for the string value in the resource bundle.
Note that this parameter is not copied!Copyright © 2012–2016 Schlichtherle IT Services. All rights reserved.