java.lang.Object
com.aoapps.hodgepodge.i18n.EditableResourceBundleSet
Groups resource bundles into a set. Only the most recent bundle created
per locale is kept.
- Author:
- AO Industries, Inc.
-
Constructor Summary
ConstructorDescriptionEditableResourceBundleSet
(Class<?> baseName, Collection<Locale> locales) EditableResourceBundleSet
(Class<?> baseName, Locale... locales) EditableResourceBundleSet
(String baseName, Collection<Locale> locales) EditableResourceBundleSet
(String baseName, Locale... locales) -
Method Summary
Modifier and TypeMethodDescriptionGets the unmodifiable set of all locales supported by this bundle set.getResourceBundle
(Locale locale) Gets the editable bundle for the provided locale.
-
Constructor Details
-
EditableResourceBundleSet
- Parameters:
baseName
- the base name of the default locale's bundle.locales
- the set of all allowed locales.
-
EditableResourceBundleSet
- Parameters:
baseName
- the class to use as the base name of the default locale's bundle.locales
- the set of all allowed locales.
-
EditableResourceBundleSet
- Parameters:
baseName
- the base name of the default locale's bundle.locales
- the set of all allowed locales.
-
EditableResourceBundleSet
- Parameters:
baseName
- the class to use as the base name of the default locale's bundle.locales
- the set of all allowed locales.
-
-
Method Details
-
getBaseName
-
getLocales
Gets the unmodifiable set of all locales supported by this bundle set. -
getResourceBundle
Gets the editable bundle for the provided locale.
-