public final class LocaleUtil extends Object
Modifier and Type | Field and Description |
---|---|
static Locale |
NULL_LOCALE
Deprecated.
use Locale.ROOT instead.
|
@Deprecated public static final Locale NULL_LOCALE
public static Locale getParentLocale(Locale locale)
Returns the "parent" locale of a given locale.
If the original locale is only language-based, the NULL_LOCALE
object is returned.
If the original locale is NULL_LOCALE
, then null
is returned.
locale
- The original locale.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.