Class LCIDUtils

java.lang.Object
host.anzo.commons.utils.LCIDUtils

public class LCIDUtils extends Object
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 Details

    • LCIDUtils

      public LCIDUtils()
  • Method Details

    • lcid2locale

      public static Locale lcid2locale(int lcid, Locale defLocale)
      Retrieves the Locale corresponding to the given LCID.
      Parameters:
      lcid - the LCID to look up
      defLocale - 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