public class DefaultLocale
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.util.Locale |
defaultLocale |
static java.util.Locale |
INITIAL_LOCALE |
| Constructor and Description |
|---|
DefaultLocale() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Locale |
getDefaultLocale()
Returns the default locale for evaluation.
|
static void |
setDefaultLocale(java.util.Locale locale)
Changes the default locale for evaluation.
|
static java.util.Locale |
toLocale(java.lang.String loc)
Turns
loc into a locale. |
static java.lang.String |
toString(java.util.Locale locale)
Turns the locale into a string.
|
public static final java.util.Locale INITIAL_LOCALE
private static java.util.Locale defaultLocale
public static void setDefaultLocale(java.util.Locale locale)
locale - the new locale, ignored if nullpublic static java.util.Locale getDefaultLocale()
public static java.lang.String toString(java.util.Locale locale)
locale - the localepublic static java.util.Locale toLocale(java.lang.String loc)
loc into a locale.loc - a string specifying a locale (form: lang[_country]).Copyright © 2009 - 2018 SSE. All Rights Reserved.