PotoYang / spring-in-action-v5-translate

Spring 实战第五版中文翻译
MIT License
1.1k stars 307 forks source link

书中2.1.2的DesignTacoController代码中缺少函数 #5

Closed aexiaosong closed 4 years ago

aexiaosong commented 4 years ago

缺少了一个filterByType函数,我在别的书中看见是有写这个函数的,希望可以加上以便他人学习。

private List<Ingredient> filterByType(List<Ingredient> ingredients, Type type) {
        return ingredients.stream().filter(x -> x.getType().equals(type)).collect(Collectors.toList());
}
PotoYang commented 4 years ago

可以的,请提交一个PR就行

aexiaosong commented 4 years ago

以后注意了 之前没有提交过,现在了解了 ---原始邮件--- 发件人:"PotoYang"notifications@github.com 发送时间:2020年4月24日 星期五 上午9:37 收件人:"PotoYang/spring-in-action-v5-translate"spring-in-action-v5-translate@noreply.github.com 抄送:"晓松丶"aexiaosong@qq.com;"Author"author@noreply.github.com 主题:Re: [PotoYang/spring-in-action-v5-translate] 书中2.1.2的DesignTacoController代码中缺少函数 (#5)

可以的,请提交一个PR就行

— You are receiving this because you authored the thread. Reply to this email directly,view it on GitHub, orunsubscribe.