fix format

This commit is contained in:
Looly 2024-04-21 19:58:11 +08:00
parent 606f690470
commit 8d750b0017

View File

@ -103,7 +103,7 @@ public class CollStreamUtil {
return MapUtil.zero(); return MapUtil.zero();
} }
return StreamUtil.of(collection, isParallel) return StreamUtil.of(collection, isParallel)
.collect(HashMap::new, (m, v) -> m.put(key.apply(v), value.apply(v)), HashMap::putAll); .collect(HashMap::new, (m, v) -> m.put(key.apply(v), value.apply(v)), HashMap::putAll);
} }
@ -322,9 +322,9 @@ public class CollStreamUtil {
return ListUtil.zero(); return ListUtil.zero();
} }
return StreamUtil.of(collection, isParallel) return StreamUtil.of(collection, isParallel)
.map(function) .map(function)
.filter(Objects::nonNull) .filter(Objects::nonNull)
.collect(Collectors.toList()); .collect(Collectors.toList());
} }
/** /**
@ -357,9 +357,9 @@ public class CollStreamUtil {
return SetUtil.zero(); return SetUtil.zero();
} }
return StreamUtil.of(collection, isParallel) return StreamUtil.of(collection, isParallel)
.map(function) .map(function)
.filter(Objects::nonNull) .filter(Objects::nonNull)
.collect(Collectors.toSet()); .collect(Collectors.toSet());
} }