public final class LocaleUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Locale |
getParentLocale(Locale locale)
Returns the "parent" locale of a given locale.
|
public static Locale getParentLocale(Locale locale)
Returns the "parent" locale of a given locale. If the original locale is only language-based,
the Locale.ROOT
object is returned.
locale
- The original locale.Copyright © 2000–2024 Apache Software Foundation. All rights reserved.