LocaleDisplayNames.UiListItem.GetComparator(IComparator, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 <String>...)
- 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.
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.