Class LocaleParser

java.lang.Object
com.atlassian.jira.util.LocaleParser

public class LocaleParser extends Object
Static utility to parse locale Strings into Locale objects.

This was previously provided by JiraLocaleUtils, but JiraLocaleUtils was deprecated.

Since:
v4.2
  • Constructor Details

    • LocaleParser

      public LocaleParser()
  • Method Details

    • parseLocale

      public static Locale parseLocale(String localeString)
      Creates a locale from the given string.
      Parameters:
      localeString - locale String
      Returns:
      new locale based on the parameter, or null is the string is null or blank.