import com.google.common.collect.Lists;
public class TestBase {
public static void main(String[] args) {
List<BABY> list = new TestBase().getList();
if (CommonUtils.isNotEmpty(list)) {
// List<Object>转Set<String>
Set<String> set = new HashSet(Lists.transform(list, module -> module.
List「对象」 转 Set「属性」
最新推荐文章于 2022-11-03 13:03:11 发布