update 优化以逗号拼接元素

This commit is contained in:
AprilWind
2025-08-06 11:18:06 +08:00
parent a39bc870d1
commit 0c1e39ea14
7 changed files with 17 additions and 7 deletions

View File

@ -362,4 +362,14 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
}
}
/**
* 以逗号拼接元素
*
* @param iterable 可迭代对象
* @return 拼接后的字符串
*/
public static String joinComma(Iterable<?> iterable) {
return StringUtils.join(iterable, SEPARATOR);
}
}