io.github.cshencode.util.list.ListToMapUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shen-tool Show documentation
Show all versions of shen-tool Show documentation
工具类-简化steam操作
通过简单的方式完成流 分组、循环
package io.github.cshencode.util.list;
/**
*
* -
*
*
* @author css
* @since 2023/6/15
*/
public class ListToMapUtil {
/**
* 如果list 是空,返回空map
*
* @param tService
* @param keyMapper
* @param
* @param
* @return
*/
// public static Map queryListToMap(Collection kList, IService tService, SFunction keyMapper) {
// if (CollectionUtils.isEmpty(kList)) {
// return new HashMap<>();
// }
// List list = tService
// .lambdaQuery()
// .in(keyMapper, kList)
// .list();
// if (CollectionUtils.isEmpty(list)) {
// return new HashMap<>();
// }
// return list.stream().collect(CollectorUtil.toMap(keyMapper));
// }
}