All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.cshencode.util.list.ListToMapUtil Maven / Gradle / Ivy

There is a newer version: 2.1.2-RELEASE
Show newest version
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)); // } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy