belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
LocaleListCompat
public
final
class
LocaleListCompat
extends Object
java.lang.Object | |
↳ | android.support.v4.os.LocaleListCompat |
Helper for accessing features in LocaleList
.
Summary
Public methods | |
---|---|
static
LocaleListCompat
|
create(Locale... localeList)
Creates a new instance of |
boolean
|
equals(Object other)
|
static
LocaleListCompat
|
forLanguageTags(String list)
Generates a new LocaleList with the given language tags. |
Locale
|
get(int index)
Retrieves the |
static
LocaleListCompat
|
getAdjustedDefault()
Returns the default locale list, adjusted by moving the default locale to its first position. |
static
LocaleListCompat
|
getDefault()
The result is guaranteed to include the default Locale returned by Locale.getDefault(), but not necessarily at the top of the list. |
static
LocaleListCompat
|
getEmptyLocaleList()
Retrieve an empty instance of |
Locale
|
getFirstMatch(String[] supportedLocales)
Returns the first match in the locale list given an unordered array of supported locales in BCP 47 format. |
int
|
hashCode()
|
int
|
indexOf(Locale locale)
Searches this |
boolean
|
isEmpty()
Returns whether the |
int
|
size()
Returns the number of |
String
|
toLanguageTags()
Retrieves a String representation of the language tags in this list. |
String
|
toString()
|
Object
|
unwrap()
Gets the underlying framework object. |
static
LocaleListCompat
|
wrap(Object object)
Creates a new instance of |
Inherited methods | |
---|---|
![]()
java.lang.Object
|