Package host.anzo.commons.utils
Class LCIDUtils
java.lang.Object
host.anzo.commons.utils.LCIDUtils
Utility class for handling Locale-related operations using LCID (Locale Identifier).
This class provides a mapping from LCID values to Locale objects.
- Since:
- 9/10/2018
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Localelcid2locale(int lcid, Locale defLocale) Retrieves the Locale corresponding to the given LCID.
-
Constructor Details
-
LCIDUtils
public LCIDUtils()
-
-
Method Details
-
lcid2locale
Retrieves the Locale corresponding to the given LCID.- Parameters:
lcid- the LCID to look updefLocale- the default Locale to return if the LCID is not found- Returns:
- the Locale corresponding to the LCID, or the default Locale if not found
-