Partager via


LocaleDisplayNames.UiListItem.GetComparator(IComparator, Boolean) Method

Definition

Return a comparator that compares the locale names for the display locale or the in-self names, depending on an input parameter.

[Android.Runtime.Register("getComparator", "(Ljava/util/Comparator;Z)Ljava/util/Comparator;", "", ApiSince=26)]
public static Java.Util.IComparator GetComparator (Java.Util.IComparator comparator, bool inSelf);
[<Android.Runtime.Register("getComparator", "(Ljava/util/Comparator;Z)Ljava/util/Comparator;", "", ApiSince=26)>]
static member GetComparator : Java.Util.IComparator * bool -> Java.Util.IComparator

Parameters

comparator
IComparator

(meant for strings, but because Java Collator doesn't have &lt;String&gt;...)

inSelf
Boolean

if true, compares the nameInSelf, otherwise the nameInDisplayLocale

Returns

UiListItem comparator

Attributes

Remarks

Return a comparator that compares the locale names for the display locale or the in-self names, depending on an input parameter.

Java documentation for android.icu.text.LocaleDisplayNames.UiListItem.getComparator(java.util.Comparator<java.lang.Object>, boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to