mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
更正方法的返回类型
This commit is contained in:
parent
ef61893d59
commit
c6d6333cbc
@ -309,7 +309,7 @@ public class EasyStream<T> extends AbstractEnhancedWrappedStream<T, EasyStream<T
|
||||
* 计算decimal的总和
|
||||
*
|
||||
* @param mapper 映射
|
||||
* @return {@link OptionalDouble}
|
||||
* @return {@link BigDecimal}
|
||||
*/
|
||||
public BigDecimal sum(final Function<? super T, BigDecimal> mapper) {
|
||||
return stream.map(mapper).reduce(BigDecimal.ZERO, BigDecimal::add);
|
||||
|
Loading…
x
Reference in New Issue
Block a user