Package org.mybatis.dynamic.sql.util
Interface CustomCollectors
-
public interface CustomCollectors
-
-
Method Summary
Static Methods Modifier and Type Method Description static java.util.stream.Collector<java.lang.CharSequence,java.util.StringJoiner,java.lang.String>joining(java.lang.CharSequence delimiter, java.lang.CharSequence prefix, java.lang.CharSequence suffix)Returns aCollectorsimilar to the standard JDK joining collector, except that this collector returns an empty string if there are no elements to collect.
-
-
-
Method Detail
-
joining
static java.util.stream.Collector<java.lang.CharSequence,java.util.StringJoiner,java.lang.String> joining(java.lang.CharSequence delimiter, java.lang.CharSequence prefix, java.lang.CharSequence suffix)Returns aCollectorsimilar to the standard JDK joining collector, except that this collector returns an empty string if there are no elements to collect.- Parameters:
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 result- Returns:
- A
Collectorwhich concatenates CharSequence elements, separated by the specified delimiter, in encounter order
-
-