ULocale

Class of android.icu.util · ULocale.java · Android's reference

public final class ULocale implements java.io.Serializable, Comparable<ULocale>

A locale, over java.util.Locale. Likely subtags come from a table of the common languages.

Fields

public static final ULocale ROOT source
public static final ULocale ENGLISH source
public static final ULocale US source
public static final ULocale JAPANESE source
public static final ULocale CHINESE source

Constructors

public ULocale(String localeID) source

Methods

public static ULocale forLocale(Locale loc) source
public static ULocale forLanguageTag(String languageTag) source
public static ULocale getDefault() source
public Locale toLocale() source
public String getLanguage() source
public String getScript() source
public String getCountry() source
public String getVariant() source
public String toLanguageTag() source
public static ULocale addLikelySubtags(ULocale loc) source
public boolean equals(Object o) source
public int hashCode() source
public String toString() source
public int compareTo(ULocale other) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.