public final class RCollectors
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.stream.Collector<java.lang.CharSequence,?,RString> |
joining()
Returns a
Collector that concatenates the input elements into a RString , in encounter order. |
static java.util.stream.Collector<java.lang.CharSequence,?,RString> |
joining(java.lang.CharSequence delimiter)
Returns a
Collector that concatenates the input elements, separated by the specified delimiter, in encounter order. |
static java.util.stream.Collector<java.lang.CharSequence,?,RString> |
joining(java.lang.CharSequence delimiter,
java.lang.CharSequence prefix,
java.lang.CharSequence suffix)
Returns a
Collector that concatenates the input elements, separated by the specified delimiter, with the specified prefix and
suffix, in encounter order. |
static <T extends RDataType<T>> |
toRCollection() |
static java.util.stream.Collector<java.lang.CharSequence,?,RList> |
toRList()
Returns a
Collector that accumulates the input elements into a new RList . |
public static java.util.stream.Collector<java.lang.CharSequence,?,RList> toRList()
Collector
that accumulates the input elements into a new RList
.T
- the type of the input elementsCollector
which collects all the input elements into a RList
, in encounter orderpublic static <T extends RDataType<T>> java.util.stream.Collector<T,?,RCollection<T>> toRCollection()
public static java.util.stream.Collector<java.lang.CharSequence,?,RString> joining()
Collector
that concatenates the input elements into a RString
, in encounter order.Collector
that concatenates the input elements into a RString
, in encounter orderpublic static java.util.stream.Collector<java.lang.CharSequence,?,RString> joining(java.lang.CharSequence delimiter)
Collector
that concatenates the input elements, separated by the specified delimiter, in encounter order.delimiter
- the delimiter to be used between each elementCollector
which concatenates CharSequence elements, separated by the specified delimiter, in encounter orderpublic static java.util.stream.Collector<java.lang.CharSequence,?,RString> joining(java.lang.CharSequence delimiter, java.lang.CharSequence prefix, java.lang.CharSequence suffix)
Collector
that concatenates the input elements, separated by the specified delimiter, with the specified prefix and
suffix, in encounter order.delimiter
- the delimiter to be used between each elementprefix
- the sequence of characters to be used at the beginning of the joined resultsuffix
- the sequence of characters to be used at the end of the joined resultCollector
which concatenates CharSequence elements, separated by the specified delimiter, in encounter order