Uses of Class
java.util.Locale.Builder
| Package | Description |
|---|---|
| java.util |
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
|
-
Uses of Locale.Builder in java.util
Methods in java.util that return Locale.Builder Modifier and Type Method Description Locale.BuilderLocale.Builder. addUnicodeLocaleAttribute(String attribute)Adds a unicode locale attribute, if not already present, otherwise has no effect.Locale.BuilderLocale.Builder. clear()Resets the builder to its initial, empty state.Locale.BuilderLocale.Builder. clearExtensions()Resets the extensions to their initial, empty state.Locale.BuilderLocale.Builder. removeUnicodeLocaleAttribute(String attribute)Removes a unicode locale attribute, if present, otherwise has no effect.Locale.BuilderLocale.Builder. setExtension(char key, String value)Sets the extension for the given key.Locale.BuilderLocale.Builder. setLanguage(String language)Sets the language.Locale.BuilderLocale.Builder. setLanguageTag(String languageTag)Resets the Builder to match the provided IETF BCP 47 language tag.Locale.BuilderLocale.Builder. setLocale(Locale locale)Resets theBuilderto match the providedlocale.Locale.BuilderLocale.Builder. setRegion(String region)Sets the region.Locale.BuilderLocale.Builder. setScript(String script)Sets the script.Locale.BuilderLocale.Builder. setUnicodeLocaleKeyword(String key, String type)Sets the Unicode locale keyword type for the given key.Locale.BuilderLocale.Builder. setVariant(String variant)Sets the variant.