TContext
- the same class as TContext
for
I18nHandlerInContext
subclass being usedpublic class I18nItemInContext0<TContext> extends I18nItemInContext<TContext>
A class that implements multi-locale resource without formatting
arguments, to be used together with I18nHandlerInContext
subclasses.
See package info for a usage example.
Constructor and Description |
---|
I18nItemInContext0(LocalizedMessage... data)
The public constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
s(TContext contextData)
The method to obtain a message in a locale that is best preferred for
the current user.
|
getBestLanguage, getBestLocaleAndMessage, getBestLocaleTag, obtainMessageFormat
getBestLanguage, getBestLocaleAndMessage, getBestLocaleTag, obtainMessageFormat
public I18nItemInContext0(LocalizedMessage... data)
data
- a varargs array of translations for a message to various
locales