- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for hasValue (0.42 sec)
-
guava-tests/test/com/google/common/collect/StreamsTest.java
assertThat(findLast(Stream.of())).isEmpty(); assertThat(findLast(Stream.of("a", "b", "c", "d"))).hasValue("d"); // test with a large, not-subsized Spliterator List<Integer> list = IntStream.rangeClosed(0, 10000).boxed().collect(Collectors.toCollection(LinkedList::new)); assertThat(findLast(list.stream())).hasValue(10000); // no way to find out the stream is empty without walking its spliterator
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 20K bytes - Viewed (0)