TArg1
- a class for the one-and-only message formatting argumentpublic class I18nItem1<TArg1> extends I18nItem
A class that implements multi-locale resource in
MessageFormat
style with one argument, to be
used together with I18nHandler
subclasses.
See package info for a usage example.
Constructor and Description |
---|
I18nItem1(LocalizedMessage... data)
The public constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
s(TArg1 arg1)
The method to obtain a formatted message in a locale that is best
preferred for the current user.
|
getBestLanguage, getBestLocaleAndMessage, getBestLocaleTag, obtainMessageFormat
public I18nItem1(LocalizedMessage... data)
data
- a varargs array of translations for a message to various
locales