mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix format
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user