|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.github.fge.msgsimple.source.MapMessageSource.Builder
public static final class MapMessageSource.Builder
Builder class for a MapMessageSource
Method Summary | |
---|---|
MessageSource |
build()
Build a new message source from the contents of this builder |
MapMessageSource.Builder |
put(String key,
String message)
Add one key/message pair |
MapMessageSource.Builder |
putAll(Map<String,String> map)
Add a map of key/message pairs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public MapMessageSource.Builder put(String key, String message)
This overrides the value if the key already existed.
key
- the keymessage
- the message
NullPointerException
- either the key or the value is nullpublic MapMessageSource.Builder putAll(Map<String,String> map)
This overrides all values of already existing keys.
map
- the map
NullPointerException
- the map is null; or a key, or value, is
nullpublic MessageSource build()
MapMessageSource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |