mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-02 00:10:58 +08:00
fix format
This commit is contained in:
parent
606f690470
commit
8d750b0017
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user