add 新增 StringUtils splitTo 与 splitList 方法 优化业务代码

This commit is contained in:
疯狂的狮子li
2023-02-06 14:26:21 +08:00
parent b9b76539ac
commit e803388cad
16 changed files with 87 additions and 33 deletions

View File

@@ -41,7 +41,7 @@ public class StreamUtils {
* @return 拼接后的list
*/
public static <E> String join(Collection<E> collection, Function<E, String> function) {
return join(collection, function, ",");
return join(collection, function, StringUtils.SEPARATOR);
}
/**