StringJoiner Constructors

Definition

Overloads

StringJoiner(ICharSequence)

Constructs a StringJoiner with no characters in it, with no prefix or suffix, and a copy of the supplied delimiter.

StringJoiner(String)
StringJoiner(ICharSequence, ICharSequence, ICharSequence)

Constructs a StringJoiner with no characters in it using copies of the supplied prefix, delimiter and suffix.

StringJoiner(String, String, String)

StringJoiner(ICharSequence)

Constructs a StringJoiner with no characters in it, with no prefix or suffix, and a copy of the supplied delimiter.

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;)V", "", ApiSince=24)]
public StringJoiner (Java.Lang.ICharSequence? delimiter);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;)V", "", ApiSince=24)>]
new Java.Util.StringJoiner : Java.Lang.ICharSequence -> Java.Util.StringJoiner

Parameters

delimiter
ICharSequence

the sequence of characters to be used between each element added to the StringJoiner value

Attributes

Remarks

Constructs a StringJoiner with no characters in it, with no prefix or suffix, and a copy of the supplied delimiter. If no characters are added to the StringJoiner and methods accessing the value of it are invoked, it will not return a prefix or suffix (or properties thereof) in the result, unless setEmptyValue has first been called.

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

StringJoiner(String)

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;)V", "", ApiSince=24)]
public StringJoiner (string? delimiter);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;)V", "", ApiSince=24)>]
new Java.Util.StringJoiner : string -> Java.Util.StringJoiner

Parameters

delimiter
String
Attributes

Remarks

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

StringJoiner(ICharSequence, ICharSequence, ICharSequence)

Constructs a StringJoiner with no characters in it using copies of the supplied prefix, delimiter and suffix.

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)V", "", ApiSince=24)]
public StringJoiner (Java.Lang.ICharSequence? delimiter, Java.Lang.ICharSequence? prefix, Java.Lang.ICharSequence? suffix);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)V", "", ApiSince=24)>]
new Java.Util.StringJoiner : Java.Lang.ICharSequence * Java.Lang.ICharSequence * Java.Lang.ICharSequence -> Java.Util.StringJoiner

Parameters

delimiter
ICharSequence

the sequence of characters to be used between each element added to the StringJoiner

prefix
ICharSequence

the sequence of characters to be used at the beginning

suffix
ICharSequence

the sequence of characters to be used at the end

Attributes

Remarks

Constructs a StringJoiner with no characters in it using copies of the supplied prefix, delimiter and suffix. If no characters are added to the StringJoiner and methods accessing the string value of it are invoked, it will return the prefix + suffix (or properties thereof) in the result, unless setEmptyValue has first been called.

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

StringJoiner(String, String, String)

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)V", "", ApiSince=24)]
public StringJoiner (string? delimiter, string? prefix, string? suffix);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)V", "", ApiSince=24)>]
new Java.Util.StringJoiner : string * string * string -> Java.Util.StringJoiner

Parameters

delimiter
String
prefix
String
suffix
String
Attributes

Remarks

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