会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
博客园
首页
新随笔
联系
订阅
管理
2020年8月25日
java的lambda表达式之 Optional
摘要: 1、Optional 使用 of() :明确对象不为 null 的时候使用 of() 2.** ofNullable()**: ofNullable() isPresent(): 如果值存在则isPresent()方法会返回true,调用get()方法会返回该对象。ifPresent 用于对过滤出的
阅读全文
posted @ 2020-08-25 18:39 Posion゜
阅读(1732)
评论(0)
推荐(0)
编辑
公告