Share via


UnicodeSet.RetainAll Method

Definition

Overloads

RetainAll(String)

Retains EACH of the characters in this string.

RetainAll(ICharSequence)

Retains EACH of the characters in this string.

RetainAll(UnicodeSet)

Retains only the elements in this set that are contained in the specified set.

RetainAll(IIterable)

RetainAll(String)

Retains EACH of the characters in this string.

public Android.Icu.Text.UnicodeSet? RetainAll (string? s);
member this.RetainAll : string -> Android.Icu.Text.UnicodeSet

Parameters

s
String

the source string

Returns

this object, for chaining

Remarks

Retains EACH of the characters in this string. Note: "ch" == {"c", "h"} If this set already any particular character, it has no effect on that character.

Java documentation for android.icu.text.UnicodeSet.retainAll(java.lang.CharSequence).

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

RetainAll(ICharSequence)

Retains EACH of the characters in this string.

[Android.Runtime.Register("retainAll", "(Ljava/lang/CharSequence;)Landroid/icu/text/UnicodeSet;", "", ApiSince=24)]
public Android.Icu.Text.UnicodeSet? RetainAll (Java.Lang.ICharSequence? s);
[<Android.Runtime.Register("retainAll", "(Ljava/lang/CharSequence;)Landroid/icu/text/UnicodeSet;", "", ApiSince=24)>]
member this.RetainAll : Java.Lang.ICharSequence -> Android.Icu.Text.UnicodeSet

Parameters

s
ICharSequence

the source string

Returns

this object, for chaining

Attributes

Remarks

Retains EACH of the characters in this string. Note: "ch" == {"c", "h"} If this set already any particular character, it has no effect on that character.

Java documentation for android.icu.text.UnicodeSet.retainAll(java.lang.CharSequence).

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

RetainAll(UnicodeSet)

Retains only the elements in this set that are contained in the specified set.

[Android.Runtime.Register("retainAll", "(Landroid/icu/text/UnicodeSet;)Landroid/icu/text/UnicodeSet;", "GetRetainAll_Landroid_icu_text_UnicodeSet_Handler", ApiSince=24)]
public virtual Android.Icu.Text.UnicodeSet? RetainAll (Android.Icu.Text.UnicodeSet? c);
[<Android.Runtime.Register("retainAll", "(Landroid/icu/text/UnicodeSet;)Landroid/icu/text/UnicodeSet;", "GetRetainAll_Landroid_icu_text_UnicodeSet_Handler", ApiSince=24)>]
abstract member RetainAll : Android.Icu.Text.UnicodeSet -> Android.Icu.Text.UnicodeSet
override this.RetainAll : Android.Icu.Text.UnicodeSet -> Android.Icu.Text.UnicodeSet

Parameters

c
UnicodeSet

set that defines which elements this set will retain.

Returns

Attributes

Remarks

Retains only the elements in this set that are contained in the specified set. In other words, removes from this set all of its elements that are not contained in the specified set. This operation effectively modifies this set so that its value is the intersection of the two sets.

Java documentation for android.icu.text.UnicodeSet.retainAll(android.icu.text.UnicodeSet).

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

RetainAll(IIterable)

[Android.Runtime.Register("retainAll", "(Ljava/lang/Iterable;)Landroid/icu/text/UnicodeSet;", "GetRetainAll_Ljava_lang_Iterable_Handler", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T extends java.lang.CharSequence" })]
public virtual Android.Icu.Text.UnicodeSet? RetainAll (Java.Lang.IIterable? collection);
[<Android.Runtime.Register("retainAll", "(Ljava/lang/Iterable;)Landroid/icu/text/UnicodeSet;", "GetRetainAll_Ljava_lang_Iterable_Handler", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T extends java.lang.CharSequence" })>]
abstract member RetainAll : Java.Lang.IIterable -> Android.Icu.Text.UnicodeSet
override this.RetainAll : Java.Lang.IIterable -> Android.Icu.Text.UnicodeSet

Parameters

collection
IIterable

Returns

Attributes

Remarks

Java documentation for android.icu.text.UnicodeSet.retainAll(java.lang.Iterable<T>).

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