| Package | Description |
|---|---|
| java.util |
Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).
|
| Modifier and Type | Method and Description |
|---|---|
Locale |
Locale.Builder.addUnicodeLocaleAttribute(String
Adds a unicode locale attribute, if not already present, otherwise has no effect.
|
Locale |
Locale.Builder.clear()
Resets the builder to its initial, empty state.
|
Locale |
Locale.Builder.clearExtensions()
Resets the extensions to their initial, empty state.
|
Locale |
Locale.Builder.removeUnicodeLocaleAttribute(String
Removes a unicode locale attribute, if present, otherwise has no effect.
|
Locale |
Locale.Builder.setExtension(char key, String
Sets the extension for the given key.
|
Locale |
Locale.Builder.setLanguage(String
Sets the language.
|
Locale |
Locale.Builder.setLanguageTag(String
Resets the Builder to match the provided IETF BCP 47 language tag.
|
Locale |
Locale.Builder.setLocale(Locale
Resets the
Builder to match the provided
locale.
|
Locale |
Locale.Builder.setRegion(String
Sets the region.
|
Locale |
Locale.Builder.setScript(String
Sets the script.
|
Locale |
Locale.Builder.setUnicodeLocaleKeyword(String
Sets the Unicode locale keyword type for the given key.
|
Locale |
Locale.Builder.setVariant(String
Sets the variant.
|