/**
* Returns a string containing the string representation of each of {@code parts}, using the
* previously configured separator between each.
* @param iterables 可遍历集合
* @param separator 分隔符
* @return
*/
public static String convertToString(Iterable<?> iterables, String separator) {
if(iterables == null) {
return StringUtils.EMPTY;
}
return Joiner.on(separator).skipNulls().join(iterables);
}
相关文章
- Swoole 4.1.0 正式版发布,支持原生 Redis/PDO/MySQLi 协程化
- java实现邮箱验证的功能
- 【编程练习】快速select算法的实现
- 微信小程序 实现websocket长连接 以及断开连接之后自动重连
- 实现单台测试机6万websocket长连接
- 缓存子系统如何设计(Cachable tag, Memcache/redis support, xml config support, LRU/LFU/本地缓存命中率)
- Spring+Stomp+ActiveMq实现websocket长连接
- springBoot+ vue+ Element-ui实现合并多图上传(一次请求多张图片)
- JQuery实现点击关注和取消功能
- redis缓存穿透解决办法--排它锁