特牛网址导航

Optional使用_optional.fromnullable_Logicr的博客-CSDN博客

网友收藏
文章目录一、引言二、方法介绍1.Optional.of()或者Optional.ofNullable()2.Optional.empty()3.isPresent()4.ifPresent(Consumer consumer)5.orElse(value)6.orElseGet(Supplier supplier)7.orElseThrow()8.filter(Predicate)9.map(Function)10.flatMap()11.T get()12.boolean isPresent()13.fr_optional.fromnullable