## Uses of Class
java.util.Locale.Builder

- Packages that use Locale.Builder
  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).

- - ### Uses of Locale.Builder in java.util

    Methods in java.util that return Locale.Builder
    Modifier and Type | Method | Description
    --- | --- | ---
    `Locale.Builder` | Locale.Builder.`addUnicodeLocaleAttribute(String attribute)` Adds a unicode locale attribute, if not already present, otherwise has no effect.
    `Locale.Builder` | Locale.Builder.`clear()` Resets the builder to its initial, empty state.
    `Locale.Builder` | Locale.Builder.`clearExtensions()` Resets the extensions to their initial, empty state.
    `Locale.Builder` | Locale.Builder.`removeUnicodeLocaleAttribute(String attribute)` Removes a unicode locale attribute, if present, otherwise has no effect.
    `Locale.Builder` | Locale.Builder.`setExtension(char key, String value)` Sets the extension for the given key.
    `Locale.Builder` | Locale.Builder.`setLanguage(String language)` Sets the language.
    `Locale.Builder` | Locale.Builder.`setLanguageTag(String languageTag)` Resets the Builder to match the provided IETF BCP 47 language tag.
    `Locale.Builder` | Locale.Builder.`setLocale(Locale locale)` Resets the `Builder` to match the provided `locale`.
    `Locale.Builder` | Locale.Builder.`setRegion(String region)` Sets the region.
    `Locale.Builder` | Locale.Builder.`setScript(String script)` Sets the script.
    `Locale.Builder` | Locale.Builder.`setUnicodeLocaleKeyword(String key, String type)` Sets the Unicode locale keyword type for the given key.
    `Locale.Builder` | Locale.Builder.`setVariant(String variant)` Sets the variant.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.