public class

LocaleParser

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

Class Overview

Static utility to parse locale Strings into Locale objects.

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

Summary

Public Constructors
LocaleParser()
Public Methods
static Locale parseLocale(String localeString)
Creates a locale from the given string.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LocaleParser ()

Public Methods

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.