java
optional, stream
narafu
2021. 12. 16. 15:15
Optinal.ofNullable(bsnsId).ifPresent(id -> {
}
Optional.ofNullable(testMapper.selectTestList()).ifPresent(testList -> {
testList.forEach(testVO -> {
}
}
https://www.daleseo.com/java8-optional-before/
자바8 Optional 1부: 빠져나올 수 없는 null 처리의 늪
Engineering Blog by Dale Seo
www.daleseo.com
https://www.daleseo.com/java8-optional-after/
자바8 Optional 2부: null을 대하는 새로운 방법
Engineering Blog by Dale Seo
www.daleseo.com
https://www.daleseo.com/java8-optional-effective/
자바8 Optional 3부: Optional을 Optional답게
Engineering Blog by Dale Seo
www.daleseo.com