会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
lambert's blog
停杯投箸不能食,拔剑四顾心茫然
首页
联系
管理
2022年7月23日
jdk8+ Optional的用法
摘要: Optional 链式操作优雅 map遍历每一项,用一次map就需要用get取出来一次 dao.findAllByTypeId().stream().map( item -> { // do something }).collect(Collectors.toList()); IfPresent、I
阅读全文
posted @ 2022-07-23 10:53 lambertlt
阅读(17)
评论(0)
推荐(0)
编辑
公告