摘要:
Optional类解决判断为Null的问题 ifPresent()方法来替代传统的 if(user != null)判断 // 使用Optional类 public void Test02(User user) { Optional.ofNullable(user).ifPresent(u -> { 阅读全文
posted @ 2022-03-05 11:27
Peter.Jones
阅读(49)
评论(0)
推荐(0)
摘要:
https://blog.csdn.net/weixin_42146366/article/details/87822781 阅读全文
posted @ 2022-03-05 11:19
Peter.Jones
阅读(13)
评论(0)
推荐(0)