public class SimpleLocaleContext extends Object implements LocaleContext
LocaleContext
interface,
always returning a specified Locale
.Constructor and Description |
---|
SimpleLocaleContext(Locale locale)
Create a new SimpleLocaleContext that exposes the specified Locale.
|
public SimpleLocaleContext(Locale locale)
getLocale()
will return this Locale.locale
- the Locale to exposepublic Locale getLocale()
LocaleContext
getLocale
in interface LocaleContext