AlphabeticIndex Constructors

Definition

Overloads

AlphabeticIndex(RuleBasedCollator)

Create an AlphabeticIndex that uses a specific collator.

AlphabeticIndex(ULocale)

Create the index object.

AlphabeticIndex(Locale)

Create the index object.

AlphabeticIndex(RuleBasedCollator)

Create an AlphabeticIndex that uses a specific collator.

[Android.Runtime.Register(".ctor", "(Landroid/icu/text/RuleBasedCollator;)V", "", ApiSince=24)]
public AlphabeticIndex (Android.Icu.Text.RuleBasedCollator? collator);
[<Android.Runtime.Register(".ctor", "(Landroid/icu/text/RuleBasedCollator;)V", "", ApiSince=24)>]
new Android.Icu.Text.AlphabeticIndex : Android.Icu.Text.RuleBasedCollator -> Android.Icu.Text.AlphabeticIndex

Parameters

collator
RuleBasedCollator

The collator to use to order the contents of this index.

Attributes

Remarks

Create an AlphabeticIndex that uses a specific collator.

The index will be created with no labels; the addLabels() function must be called after creation to add the desired labels to the index.

The index will work directly with the supplied collator. If the caller will need to continue working with the collator it should be cloned first, so that the collator provided to the AlphabeticIndex remains unchanged after creation of the index.

Java documentation for android.icu.text.AlphabeticIndex.AlphabeticIndex(android.icu.text.RuleBasedCollator).

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

AlphabeticIndex(ULocale)

Create the index object.

[Android.Runtime.Register(".ctor", "(Landroid/icu/util/ULocale;)V", "", ApiSince=24)]
public AlphabeticIndex (Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register(".ctor", "(Landroid/icu/util/ULocale;)V", "", ApiSince=24)>]
new Android.Icu.Text.AlphabeticIndex : Android.Icu.Util.ULocale -> Android.Icu.Text.AlphabeticIndex

Parameters

locale
ULocale

The locale for the index.

Attributes

Remarks

Create the index object.

Java documentation for android.icu.text.AlphabeticIndex.AlphabeticIndex(android.icu.util.ULocale).

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

AlphabeticIndex(Locale)

Create the index object.

[Android.Runtime.Register(".ctor", "(Ljava/util/Locale;)V", "", ApiSince=24)]
public AlphabeticIndex (Java.Util.Locale? locale);
[<Android.Runtime.Register(".ctor", "(Ljava/util/Locale;)V", "", ApiSince=24)>]
new Android.Icu.Text.AlphabeticIndex : Java.Util.Locale -> Android.Icu.Text.AlphabeticIndex

Parameters

locale
Locale

The locale for the index.

Attributes

Remarks

Create the index object.

Java documentation for android.icu.text.AlphabeticIndex.AlphabeticIndex(java.util.Locale).

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