{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

LocaleList

public final class LocaleList implements Collection


Defines a list of Locale objects.

See also
TextStyle
SpanStyle

Summary

Nested types

public static class LocaleList.Companion

Public constructors

LocaleList(@NonNull String languageTags)

Create a LocaleList object from comma separated language tags.

Creates a LocaleList object from a list of Locales.

Public methods

boolean
boolean
boolean
equals(Object other)
final @NonNull Locale
get(int i)
final @NonNull List<@NonNull Locale>
int
int
boolean
@NonNull Iterator<@NonNull Locale>
@NonNull String

Public constructors

LocaleList

public LocaleList(@NonNull String languageTags)

Create a LocaleList object from comma separated language tags.

Parameters
@NonNull String languageTags

A comma separated IETF BCP47 compliant language tag.

LocaleList

public LocaleList(@NonNull List<@NonNull Locale> localeList)

LocaleList

public LocaleList(@NonNull Locale locales)

Creates a LocaleList object from a list of Locales.

Public methods

contains

public boolean contains(@NonNull Locale element)

containsAll

public boolean containsAll(@NonNull Collection<@NonNull Locale> elements)

equals

public boolean equals(Object other)

get

public final @NonNull Locale get(int i)

getLocaleList

public final @NonNull List<@NonNull LocalegetLocaleList()

getSize

public int getSize()

hashCode

public int hashCode()

isEmpty

public boolean isEmpty()

iterator

public @NonNull Iterator<@NonNull Localeiterator()

toString

public @NonNull String toString()