Package com.atlassian.jira.util
Class LocaleParser
java.lang.Object
com.atlassian.jira.util.LocaleParser
Static utility to parse locale Strings into Locale objects.
This was previously provided by JiraLocaleUtils, but JiraLocaleUtils was deprecated.
- Since:
- v4.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LocaleparseLocale(String localeString) Creates a locale from the given string.
-
Constructor Details
-
LocaleParser
public LocaleParser()
-
-
Method Details
-
parseLocale
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.
-