TContext - the same class as TContext for
I18nHandlerInContext subclass being usedTArg1 - a class for the one-and-only message formatting argumentpublic class I18nItemInContext1<TContext,TArg1> extends I18nItemInContext<TContext>
A class that implements multi-locale resource in
MessageFormat style with one argument, to be
used together with I18nHandlerInContext subclasses.
See package info for a usage example.
| Constructor and Description |
|---|
I18nItemInContext1(LocalizedMessage... data)
The public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
s(TContext contextData,
TArg1 arg1)
The method to obtain a formatted message in a locale that is best
preferred for the current user.
|
getBestLanguage, getBestLocaleAndMessage, getBestLocaleTag, obtainMessageFormatgetBestLanguage, getBestLocaleAndMessage, getBestLocaleTag, obtainMessageFormatpublic I18nItemInContext1(LocalizedMessage... data)
data - a varargs array of translations for a message to various
localespublic String s(TContext contextData, TArg1 arg1)
contextData - an instance of context-specific data to retrieve user
preferences fromarg1 - the one-and-only message formatting argument