public class MessagesImpl extends java.lang.Object implements Messages
Messages.Attrs
Constructor and Description |
---|
MessagesImpl(Lang lang,
MessagesApi messagesApi) |
Modifier and Type | Method and Description |
---|---|
play.api.i18n.Messages |
asScala() |
java.lang.String |
at(java.util.List<java.lang.String> keys,
java.lang.Object... args)
Get the message at the first defined key.
|
java.lang.String |
at(java.lang.String key,
java.lang.Object... args)
Get the message at the given key.
|
java.lang.Boolean |
isDefinedAt(java.lang.String key)
Check if a message key is defined.
|
Lang |
lang()
Get the lang for these messages.
|
MessagesApi |
messagesApi() |
public MessagesImpl(Lang lang, MessagesApi messagesApi)
public Lang lang()
Messages
public MessagesApi messagesApi()
public java.lang.String at(java.lang.String key, java.lang.Object... args)
public java.lang.String at(java.util.List<java.lang.String> keys, java.lang.Object... args)
public java.lang.Boolean isDefinedAt(java.lang.String key)
isDefinedAt
in interface Messages
key
- the message key