StringJoiner.SetEmptyValue Method

Definition

Overloads

SetEmptyValue(ICharSequence)

Sets the sequence of characters to be used when determining the string representation of this StringJoiner and no elements have been added yet, that is, when it is empty.

SetEmptyValue(String)

Sets the sequence of characters to be used when determining the string representation of this StringJoiner and no elements have been added yet, that is, when it is empty.

SetEmptyValue(ICharSequence)

Sets the sequence of characters to be used when determining the string representation of this StringJoiner and no elements have been added yet, that is, when it is empty.

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

Parameters

emptyValue
ICharSequence

the characters to return as the value of an empty StringJoiner

Returns

this StringJoiner itself so the calls may be chained

Attributes

Remarks

Sets the sequence of characters to be used when determining the string representation of this StringJoiner and no elements have been added yet, that is, when it is empty. A copy of the emptyValue parameter is made for this purpose. Note that once an add method has been called, the StringJoiner is no longer considered empty, even if the element(s) added correspond to the empty String.

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

SetEmptyValue(String)

Sets the sequence of characters to be used when determining the string representation of this StringJoiner and no elements have been added yet, that is, when it is empty.

public Java.Util.StringJoiner? SetEmptyValue (string? emptyValue);
member this.SetEmptyValue : string -> Java.Util.StringJoiner

Parameters

emptyValue
String

the characters to return as the value of an empty StringJoiner

Returns

this StringJoiner itself so the calls may be chained

Remarks

Sets the sequence of characters to be used when determining the string representation of this StringJoiner and no elements have been added yet, that is, when it is empty. A copy of the emptyValue parameter is made for this purpose. Note that once an add method has been called, the StringJoiner is no longer considered empty, even if the element(s) added correspond to the empty String.

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