摘要: User user = new User(1000L, "guodong", 99); User user1 = new User(); Optional.ofNullable(user).map(data -> data.getName()).ifPresent(user1::setName); 阅读全文
posted @ 2022-10-12 18:04 郭慕荣 阅读(102) 评论(0) 推荐(0) 编辑