除了后者在可读性上稍微更好之外,使用上述构造有什么区别吗?
someList.stream().map(item -> new NewClass(item)).collect(Collectors.toList()); someList.stream().map(NewClass::new).collect(Collectors.toList());
用户名或邮箱地址
密码