我有
#rightMenu {
width: 10%;
min-width: 150px !important;
height: 100%;
min-height: 700px;
padding-top: 20px;
//outline: 1px solid green;
background-color: #FAFAFA;
color: #444;
position: fixed;
top: 52px;
right: 0;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
}
所以我真正想写的是:
class Player {
PUID playerId;
PUID teamId;
int numOfScoredPoints;
}
我该怎么做?
答案 0 :(得分:2)
reduce(BiFunction)
没有使用初始值:
source.reduce((acc, player) -> {
acc.numOfScoredPoints += player.numOfScoredPoints;
return acc;
});
继续回复第一个参数。