TArg1
- a class for the first message formatting argumentTArg2
- a class for the second message formatting argumentTArg3
- a class for the third message formatting argumentpublic class I18nItem3<TArg1,TArg2,TArg3> extends I18nItem
A class that implements multi-locale resource in
MessageFormat
style with three arguments, to
be used together with I18nHandler
subclasses.
See package info for a usage example.
Constructor and Description |
---|
I18nItem3(LocalizedMessage... data)
The public constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
s(TArg1 arg1,
TArg2 arg2,
TArg3 arg3)
The method to obtain a formatted message in a locale that is best
preferred for the current user.
|
getBestLanguage, getBestLocaleAndMessage, getBestLocaleTag, obtainMessageFormat
public I18nItem3(LocalizedMessage... data)
data
- a varargs array of translations for a message to various
localespublic String s(TArg1 arg1, TArg2 arg2, TArg3 arg3)
arg1
- the first message formatting argumentarg2
- the second message formatting argumentarg3
- the third message formatting argument