摘要: 1、Optional 使用 of() :明确对象不为 null 的时候使用 of() 2.** ofNullable()**: ofNullable() isPresent(): 如果值存在则isPresent()方法会返回true,调用get()方法会返回该对象。ifPresent 用于对过滤出的 阅读全文
posted @ 2020-08-25 18:39 Posion゜ 阅读(1732) 评论(0) 推荐(0) 编辑