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