Module java.base
Package java.util

# Class Locale

=
public final class Locale
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

## Nested Types

- = Builder
- = Category
- = FilteringMode
- = IsoCountryCode
- = LanguageRange

## Fields

- =
  public static final java.util.Locale CANADA
- =
  public static final java.util.Locale CANADA_FRENCH
- =
  public static final java.util.Locale CHINA
- =
  public static final java.util.Locale CHINESE
- =
  public static final java.util.Locale ENGLISH
- =
  public static final java.util.Locale FRANCE
- =
  public static final java.util.Locale FRENCH
- =
  public static final java.util.Locale GERMAN
- =
  public static final java.util.Locale GERMANY
- =
  public static final java.util.Locale ITALIAN
- =
  public static final java.util.Locale ITALY
- =
  public static final java.util.Locale JAPAN
- =
  public static final java.util.Locale JAPANESE
- =
  public static final java.util.Locale KOREA
- =
  public static final java.util.Locale KOREAN
- =
  public static final java.util.Locale PRC
- =
  public static final char PRIVATE_USE_EXTENSION = 'x'
- =
  public static final java.util.Locale ROOT
- =
  public static final java.util.Locale SIMPLIFIED_CHINESE
- =
  public static final java.util.Locale TAIWAN
- =
  public static final java.util.Locale TRADITIONAL_CHINESE
- =
  public static final java.util.Locale UK
- =
  public static final char UNICODE_LOCALE_EXTENSION = 'u'
- =
  public static final java.util.Locale US

## Constructors

- =
  @Deprecated(since="19")
  public Locale(java.lang.String arg0)
- =
  @Deprecated(since="19")
  public Locale(java.lang.String arg0, java.lang.String arg1)
- =
  @Deprecated(since="19")
  public Locale(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2)

## Methods

- =
  public static java.util.stream.Stream<java.util.Locale> availableLocales()
- =
  public static java.lang.String caseFoldLanguageTag(java.lang.String arg0)
- =
  public java.lang.Object clone()
- =
  public boolean equals(java.lang.Object arg0)
- =
  public static java.util.List<java.util.Locale> filter(java.util.List<java.util.Locale.LanguageRange> arg0, java.util.Collection<java.util.Locale> arg1)
- =
  public static java.util.List<java.util.Locale> filter(java.util.List<java.util.Locale.LanguageRange> arg0, java.util.Collection<java.util.Locale> arg1, java.util.Locale.FilteringMode arg2)
- =
  public static java.util.List<java.lang.String> filterTags(java.util.List<java.util.Locale.LanguageRange> arg0, java.util.Collection<java.lang.String> arg1)
- =
  public static java.util.List<java.lang.String> filterTags(java.util.List<java.util.Locale.LanguageRange> arg0, java.util.Collection<java.lang.String> arg1, java.util.Locale.FilteringMode arg2)
- =
  public static java.util.Locale forLanguageTag(java.lang.String arg0)
- =
  public static java.util.Locale[] getAvailableLocales()
- =
  public java.lang.String getCountry()
- =
  public static java.util.Locale getDefault()
- =
  public static java.util.Locale getDefault(java.util.Locale.Category arg0)
- =
  public final java.lang.String getDisplayCountry()
- =
  public java.lang.String getDisplayCountry(java.util.Locale arg0)
- =
  public final java.lang.String getDisplayLanguage()
- =
  public java.lang.String getDisplayLanguage(java.util.Locale arg0)
- =
  public final java.lang.String getDisplayName()
- =
  public java.lang.String getDisplayName(java.util.Locale arg0)
- =
  public java.lang.String getDisplayScript()
- =
  public java.lang.String getDisplayScript(java.util.Locale arg0)
- =
  public final java.lang.String getDisplayVariant()
- =
  public java.lang.String getDisplayVariant(java.util.Locale arg0)
- =
  public java.lang.String getExtension(char arg0)
- =
  public java.util.Set<java.lang.Character> getExtensionKeys()
- =
  public java.lang.String getISO3Country() throws java.util.MissingResourceException
- =
  public java.lang.String getISO3Language() throws java.util.MissingResourceException
- =
  public static java.lang.String[] getISOCountries()
- =
  public static java.util.Set<java.lang.String> getISOCountries(java.util.Locale.IsoCountryCode arg0)
- =
  public static java.lang.String[] getISOLanguages()
- =
  public java.lang.String getLanguage()
- =
  public java.lang.String getScript()
- =
  public java.util.Set<java.lang.String> getUnicodeLocaleAttributes()
- =
  public java.util.Set<java.lang.String> getUnicodeLocaleKeys()
- =
  public java.lang.String getUnicodeLocaleType(java.lang.String arg0)
- =
  public java.lang.String getVariant()
- =
  public boolean hasExtensions()
- =
  public int hashCode()
- =
  public static java.util.Locale lookup(java.util.List<java.util.Locale.LanguageRange> arg0, java.util.Collection<java.util.Locale> arg1)
- =
  public static java.lang.String lookupTag(java.util.List<java.util.Locale.LanguageRange> arg0, java.util.Collection<java.lang.String> arg1)
- =
  public static java.util.Locale of(java.lang.String arg0)
- =
  public static java.util.Locale of(java.lang.String arg0, java.lang.String arg1)
- =
  public static java.util.Locale of(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2)
- =
  public static void setDefault(java.util.Locale arg0)
- =
  public static void setDefault(java.util.Locale.Category arg0, java.util.Locale arg1)
- =
  public java.util.Locale stripExtensions()
- =
  public java.lang.String toLanguageTag()
- =
  public final java.lang.String toString()

## Serialized Form

=

### serialVersionUID

=9149081749638150636

### Serialization Methods

- =
  private void readObject(java.io.ObjectInputStream arg0) throws java.io.IOException, java.lang.ClassNotFoundException
- =
  private java.lang.Object readResolve() throws java.io.ObjectStreamException
- =
  private void writeObject(java.io.ObjectOutputStream arg0) throws java.io.IOException

## Summary

No differences.