Share via


Collectors.Joining Method

Definition

Overloads

Joining()

Returns a Collector that concatenates the input elements into a String, in encounter order.

Joining(ICharSequence)

Returns a Collector that concatenates the input elements, separated by the specified delimiter, in encounter order.

Joining(String)

Returns a Collector that concatenates the input elements, separated by the specified delimiter, in encounter order.

Joining(ICharSequence, ICharSequence, ICharSequence)

Returns a Collector that concatenates the input elements, separated by the specified delimiter, with the specified prefix and suffix, in encounter order.

Joining(String, String, String)

Returns a Collector that concatenates the input elements, separated by the specified delimiter, with the specified prefix and suffix, in encounter order.

Joining()

Returns a Collector that concatenates the input elements into a String, in encounter order.

[Android.Runtime.Register("joining", "()Ljava/util/stream/Collector;", "", ApiSince=24)]
public static Java.Util.Streams.ICollector? Joining ();
[<Android.Runtime.Register("joining", "()Ljava/util/stream/Collector;", "", ApiSince=24)>]
static member Joining : unit -> Java.Util.Streams.ICollector

Returns

a Collector that concatenates the input elements into a String, in encounter order

Attributes

Remarks

Returns a Collector that concatenates the input elements into a String, in encounter order.

Java documentation for java.util.stream.Collectors.joining().

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

Joining(ICharSequence)

Returns a Collector that concatenates the input elements, separated by the specified delimiter, in encounter order.

[Android.Runtime.Register("joining", "(Ljava/lang/CharSequence;)Ljava/util/stream/Collector;", "", ApiSince=24)]
public static Java.Util.Streams.ICollector? Joining (Java.Lang.ICharSequence? delimiter);
[<Android.Runtime.Register("joining", "(Ljava/lang/CharSequence;)Ljava/util/stream/Collector;", "", ApiSince=24)>]
static member Joining : Java.Lang.ICharSequence -> Java.Util.Streams.ICollector

Parameters

delimiter
ICharSequence

the delimiter to be used between each element

Returns

A Collector which concatenates CharSequence elements, separated by the specified delimiter, in encounter order

Attributes

Remarks

Returns a Collector that concatenates the input elements, separated by the specified delimiter, in encounter order.

Java documentation for java.util.stream.Collectors.joining(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

Joining(String)

Returns a Collector that concatenates the input elements, separated by the specified delimiter, in encounter order.

public static Java.Util.Streams.ICollector? Joining (string? delimiter);
static member Joining : string -> Java.Util.Streams.ICollector

Parameters

delimiter
String

the delimiter to be used between each element

Returns

A Collector which concatenates CharSequence elements, separated by the specified delimiter, in encounter order

Remarks

Returns a Collector that concatenates the input elements, separated by the specified delimiter, in encounter order.

Java documentation for java.util.stream.Collectors.joining(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

Joining(ICharSequence, ICharSequence, ICharSequence)

Returns a Collector that concatenates the input elements, separated by the specified delimiter, with the specified prefix and suffix, in encounter order.

[Android.Runtime.Register("joining", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/util/stream/Collector;", "", ApiSince=24)]
public static Java.Util.Streams.ICollector? Joining (Java.Lang.ICharSequence? delimiter, Java.Lang.ICharSequence? prefix, Java.Lang.ICharSequence? suffix);
[<Android.Runtime.Register("joining", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/util/stream/Collector;", "", ApiSince=24)>]
static member Joining : Java.Lang.ICharSequence * Java.Lang.ICharSequence * Java.Lang.ICharSequence -> Java.Util.Streams.ICollector

Parameters

delimiter
ICharSequence

the delimiter to be used between each element

prefix
ICharSequence

the sequence of characters to be used at the beginning of the joined result

suffix
ICharSequence

the sequence of characters to be used at the end of the joined result

Returns

A Collector which concatenates CharSequence elements, separated by the specified delimiter, in encounter order

Attributes

Remarks

Returns a Collector that concatenates the input elements, separated by the specified delimiter, with the specified prefix and suffix, in encounter order.

Java documentation for java.util.stream.Collectors.joining(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

Joining(String, String, String)

Returns a Collector that concatenates the input elements, separated by the specified delimiter, with the specified prefix and suffix, in encounter order.

public static Java.Util.Streams.ICollector? Joining (string? delimiter, string? prefix, string? suffix);
static member Joining : string * string * string -> Java.Util.Streams.ICollector

Parameters

delimiter
String

the delimiter to be used between each element

prefix
String

the sequence of characters to be used at the beginning of the joined result

suffix
String

the sequence of characters to be used at the end of the joined result

Returns

A Collector which concatenates CharSequence elements, separated by the specified delimiter, in encounter order

Remarks

Returns a Collector that concatenates the input elements, separated by the specified delimiter, with the specified prefix and suffix, in encounter order.

Java documentation for java.util.stream.Collectors.joining(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