Package io.rincl
Class LocaleSelection
java.lang.Object
io.rincl.LocaleSelection
- All Implemented Interfaces:
LocaleSelectable
Storage implementation for all available locale categories.
- Author:
- Garret Wilson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLocale
(Locale.Category category) Retrieves the configured locale for the given category.void
setLocale
(Locale.Category category, Locale locale) Configures the locale for the given locale category.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.rincl.LocaleSelectable
setLocale
-
Constructor Details
-
LocaleSelection
public LocaleSelection()Constructor.
-
-
Method Details
-
getLocale
Description copied from interface:LocaleSelectable
Retrieves the configured locale for the given category.- Specified by:
getLocale
in interfaceLocaleSelectable
- Parameters:
category
- The category of locale to return.- Returns:
- The the configured locale for the given category.
- See Also:
-
setLocale
Description copied from interface:LocaleSelectable
Configures the locale for the given locale category. Future calls toLocaleSelectable.getLocale(Locale.Category)
will return the value set here.- Specified by:
setLocale
in interfaceLocaleSelectable
- Parameters:
category
- The category for which the locale should be set.locale
- The new locale value.- See Also:
-