public interface CustomCollectors
| Modifier and Type | Method and Description |
|---|---|
static Collector<CharSequence,StringJoiner,String> |
joining(CharSequence delimiter,
CharSequence prefix,
CharSequence suffix)
Returns a
Collector similar to the standard JDK joining collector, except that
this collector returns an empty string if there are no elements to collect. |
static Collector<CharSequence,StringJoiner,String> joining(CharSequence delimiter, CharSequence prefix, CharSequence suffix)
Collector similar to the standard JDK joining collector, except that
this collector returns an empty string if there are no elements to collect.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 orderCopyright © 2006–2025 MyBatis.org. All rights reserved.