java savesstreamfilterit - !ObjUtilisNullitgetIdcount; 转int
可以使用方法Math.toIntExact()将long类型的结果转换为int类型。
int count = Math.toIntExact(java.saves.stream().filter(it -> !ObjUtil.isNull(it.getId())).count());
原文地址: https://www.cveoy.top/t/topic/iBcB 著作权归作者所有。请勿转载和采集!