public interface Messages
ResourceBundle
with some changes.Modifier and Type | Method and Description |
---|---|
boolean |
contains(String key)
Returns true if the bundle contains the named key.
|
String |
format(String key,
Object... args)
Convenience for accessing a formatter and formatting a localized message with arguments.
|
String |
get(String key)
Returns the localized message for the given key.
|
MessageFormatter |
getFormatter(String key)
Returns a formatter for the message, which can be used to substitute arguments (as per
Formatter ). |
Set<String> |
getKeys()
Returns a set of all the keys for which this instance may provide a value.
|
String get(String key)
key
- MessageFormatter getFormatter(String key)
Formatter
).key
- String format(String key, Object... args)
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.