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