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, getFormatter
public MapMessages(Locale locale, Map<String,String> properties)
protected String valueForKey(String key)
AbstractMessages
valueForKey
in class AbstractMessages
key
- the key to obtain a value for (case insensitive)${project.version} - Copyright © 2003-2015 The Apache Software Foundation.