List of Obj where field is true
List<SomeObj> validObjs = someListOfObj
.stream()
.collect(Collectors.groupingBy(SomeObj::isValid, Collectors.toList()));
.get(true);
List<SomeObj> validObjs = someListOfObj
.stream()
.collect(Collectors.groupingBy(SomeObj::isValid, Collectors.toList()));
.get(true);