0%

Stream-Programming

Stream supplier

Provide a not-closed stream every time.

1
2
Supplier<Stream<String>> streamSupplier = () -> Stream.of("A", "B", "C");
Optional<String> item = streamSupplier.get().findAndy();