public final class Locales extends Object
Modifier and Type | Method and Description |
---|---|
static Locale[] |
getAvailableLanguages()
Returns available languages.
|
static Locale[] |
getAvailableLocales()
Returns the list of available locales.
|
static String[] |
getAvailableLocales(Locale locale)
Returns the list of available locales formatted as string in the specified locale.
|
static void |
main(String... args)
Prints the list of available locales.
|
public static Locale[] getAvailableLanguages()
public static Locale[] getAvailableLocales()
public static String[] getAvailableLocales(Locale locale)
locale
- The locale to use for formatting the strings to be returned.public static void main(String... args)
args
- Command-lines arguments.Copyright © 1996–2023 Geotools. All rights reserved.