public class MapMessages extends AbstractMessages
Messages based on a simple Map (of string keys and values).| Constructor and Description |
|---|
MapMessages(Locale locale,
Map<String,String> properties)
A new instance retaining (not copying) the provided map.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getKeys()
Returns a set of all the keys for which this instance may provide a value.
|
protected String |
valueForKey(String key)
Invoked to provide the value for a particular key.
|
contains, format, get, getFormatterpublic MapMessages(Locale locale, Map<String,String> properties)
protected String valueForKey(String key)
AbstractMessagesvalueForKey in class AbstractMessageskey - the key to obtain a value for (case insensitive)5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.