Searched refs:Optional_stream (Results 1 – 1 of 1) sorted by relevance
231 assertEquals(Optional_stream(Optional.empty()).collect(toList()), List.of()); in testStreamEmpty()238 assertEquals(Optional_stream(Optional.of("xyzzy")).collect(toList()), List.of("xyzzy")); in testStreamPresent()283 Stream<Integer> s = Optional_stream(E); in testStream_empty()291 Stream<Integer> s = Optional_stream(P); in testStream_present()375 private static <T> Stream<T> Optional_stream(Optional<T> receiver) { in Optional_stream() method in Basic