Dela via


StringJoiner.Add Method

Definition

Overloads

Add(ICharSequence)

Adds a copy of the given CharSequence value as the next element of the StringJoiner value.

Add(String)

Adds a copy of the given CharSequence value as the next element of the StringJoiner value.

Add(ICharSequence)

Adds a copy of the given CharSequence value as the next element of the StringJoiner value.

[Android.Runtime.Register("add", "(Ljava/lang/CharSequence;)Ljava/util/StringJoiner;", "", ApiSince=24)]
public Java.Util.StringJoiner? Add (Java.Lang.ICharSequence? newElement);
[<Android.Runtime.Register("add", "(Ljava/lang/CharSequence;)Ljava/util/StringJoiner;", "", ApiSince=24)>]
member this.Add : Java.Lang.ICharSequence -> Java.Util.StringJoiner

Parameters

newElement
ICharSequence

The element to add

Returns

a reference to this StringJoiner

Attributes

Remarks

Adds a copy of the given CharSequence value as the next element of the StringJoiner value. If newElement is null, then "null" is added.

Java documentation for java.util.StringJoiner.add(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

Add(String)

Adds a copy of the given CharSequence value as the next element of the StringJoiner value.

public Java.Util.StringJoiner? Add (string? newElement);
member this.Add : string -> Java.Util.StringJoiner

Parameters

newElement
String

The element to add

Returns

a reference to this StringJoiner

Remarks

Adds a copy of the given CharSequence value as the next element of the StringJoiner value. If newElement is null, then "null" is added.

Java documentation for java.util.StringJoiner.add(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