public interface ILocaleManager
| Modifier and Type | Method and Description |
|---|---|
List<Locale> |
getAllAvailableLocales() |
Locale |
getDefaultLocale() |
boolean |
hasLocales() |
boolean |
isSupportedLocale(Locale aLocale)
Check if the passed locale is a supported locale.
|
com.helger.commons.state.EChange |
registerLocale(Locale aLocale)
Register a new locale
|
com.helger.commons.state.EChange |
setDefaultLocale(Locale aDefaultLocale)
Set the default locale.
|
@Nonnull com.helger.commons.state.EChange registerLocale(@Nonnull Locale aLocale)
aLocale - The locale to be added. May not be null.EChange.@Nonnull com.helger.commons.state.EChange setDefaultLocale(@Nonnull Locale aDefaultLocale)
aDefaultLocale - The locale to be used as the default. May not be null.EChange@Nullable Locale getDefaultLocale()
null if non is
defined@Nonnull @ReturnsMutableCopy List<Locale> getAllAvailableLocales()
boolean hasLocales()
true if at least one locale is present,
false otherwiseCopyright © 2014–2015 Philip Helger. All rights reserved.