Buy me a coffee
Java
›
Stream
›
findFirst
←
allMatch
findFirst
Stream
Collectors.toList
→
最初の要素をOptionalで返します。
構文
stream.findFirst()