Nested Classes
static final class
Builder
is used to build instances of Locale
from values configured by the setters.
static enum
Enum for locale categories.
static enum
This enum provides constants to select a filtering mode for locale matching.
static enum
Enum for specifying the type defined in ISO 3166.
static final class
Fields
Useful constant for country.
Useful constant for country.
Useful constant for country.
Useful constant for language.
Useful constant for language.
Useful constant for country.
Useful constant for language.
Useful constant for language.
Useful constant for country.
Useful constant for language.
Useful constant for country.
Useful constant for country.
Useful constant for language.
Useful constant for country.
Useful constant for language.
Useful constant for country.
static final char
The key for the private use extension ('x').
Useful constant for the root locale.
Useful constant for language.
Useful constant for country.
Useful constant for language.
Useful constant for country.
static final char
The key for Unicode locale extension ('u').
Useful constant for country.
Constructors
Returns a stream of installed locales.
Returns a case folded IETF BCP 47 language tag.
boolean
Returns true if this Locale is equal to another object.
Returns a list of matching Locale
instances using the filtering mechanism defined in RFC 4647.
Returns a list of matching Locale
instances using the filtering mechanism defined in RFC 4647.
Returns a list of matching languages tags using the basic filtering mechanism defined in RFC 4647.
Returns a list of matching languages tags using the basic filtering mechanism defined in RFC 4647.
Returns a locale for the specified IETF BCP 47 language tag string.
Returns an array of installed locales.
Returns the country/region code for this locale, which should either be the empty string, an uppercase ISO 3166 2-letter code, or a UN M.49 3-digit code.
Gets the current value of the
default locale
for this instance of the Java Virtual Machine.
Gets the current value of the
default locale
for the specified Category for this instance of the Java Virtual Machine.
Returns a name for the locale's country that is appropriate for display to the user.
Returns a name for the locale's country that is appropriate for display to the user.
Returns a name for the locale's language that is appropriate for display to the user.
Returns a name for the locale's language that is appropriate for display to the user.
Returns a name for the locale that is appropriate for display to the user.
Returns a name for the locale that is appropriate for display to the user.
Returns a name for the locale's script that is appropriate for display to the user.
Returns a name for the locale's script that is appropriate for display to the user.
Returns a name for the locale's variant code that is appropriate for display to the user.
Returns a name for the locale's variant code that is appropriate for display to the user.
Returns the extension (or private use) value associated with the specified key, or null if there is no extension associated with the key.
Returns the set of extension keys associated with this locale, or the empty set if it has no extensions.
Returns a three-letter abbreviation of this locale's country.
Returns a three-letter abbreviation of this locale's language.
Returns a list of all 2-letter country codes defined in ISO 3166.
Returns a Set
of ISO3166 country codes for the specified type.
Returns a list of all 2-letter language codes defined in ISO 639.
Returns the language code of this Locale.
Returns the script for this locale, which should either be the empty string or an ISO 15924 4-letter script code.
Returns the set of unicode locale attributes associated with this locale, or the empty set if it has no attributes.
Returns the set of Unicode locale keys defined by this locale, or the empty set if this locale has none.
Returns the Unicode locale type associated with the specified Unicode locale key for this locale.
Returns the variant code for this locale.
boolean
int
Returns a Locale
instance for the best-matching language tag using the lookup mechanism defined in RFC 4647.
Returns the best-matching language tag using the lookup mechanism defined in RFC 4647.
Obtains a locale from a language code.
Obtains a locale from language and country.
Obtains a locale from language, country and variant.
static void
Sets the
default locale
for this instance of the Java Virtual Machine.
static void
Sets the
default locale
for the specified Category for this instance of the Java Virtual Machine.
Returns a copy of this
Locale
with no
extensions.
Returns a well-formed IETF BCP 47 language tag representing this locale.
Returns a string representation of this Locale
object, consisting of language, country, variant, script, and extensions as below: language + "_" + country + "_" + (variant + "_#" | "#") + script + "_" + extensions Language is always lower case, country is always upper case, script is always title case, and extensions are always lower case.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4