Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java 8 stream option

things.stream()
    .map(this::resolve)
    .filter(Optional::isPresent)
    .map(Optional::get)
    .findFirst();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #stream #option
ADD COMMENT
Topic
Name
2+7 =