Optional笔记
头部optional方法常用:isPresent(), get(), orElse(), ifPresnet()四个方法。A container object which may or may not contain a non-null value. If a value is present,isPresent() will return true and get() will return the value.Additional methods that depend on the pres
原创
2022-02-21 10:31:14 ·
1532 阅读 ·
0 评论