Searched refs:findAny (Results 1 – 11 of 11) sorted by relevance
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | FindAnyOpTest.java | 55 assertFalse(Collections.emptySet().stream().findAny().isPresent(), "no result"); in testFindAny() 56 assertFalse(countTo(10).stream().filter(x -> x > 10).findAny().isPresent(), "no result"); in testFindAny() 57 assertTrue(countTo(10).stream().filter(pEven).findAny().isPresent(), "with result"); in testFindAny() 61 assertFalse(Collections.emptySet().parallelStream().findAny().isPresent(), "no result"); in testFindAnyParallel() 62 …assertFalse(countTo(1000).parallelStream().filter(x -> x > 1000).findAny().isPresent(), "no result… in testFindAnyParallel() 63 … assertTrue(countTo(1000).parallelStream().filter(pEven).findAny().isPresent(), "with result"); in testFindAnyParallel() 75 …Optional<Integer> or = withData(data).terminal(fs, s -> s.findAny()).equalator(VALID_ANSWER).exerc… in exerciseStream() 99 …OptionalInt or = withData(data).terminal(fs, s -> s.findAny()).equalator(INT_VALID_ANSWER).exercis… in exerciseIntStream() 123 …OptionalLong or = withData(data).terminal(fs, s -> s.findAny()).equalator(LONG_VALID_ANSWER).exerc… in exerciseLongStream() 147 …OptionalDouble or = withData(data).terminal(fs, s -> s.findAny()).equalator(DOUBLE_VALID_ANSWER).e… in exerciseDoubleStream()
|
D | SortedOpTest.java | 155 assertEquals(knownSize.apply(1).findAny(), Optional.of(1)); in testSequentialShortCircuitTerminal() 157 assertEquals(unknownSize.apply(1).findAny(), Optional.of(1)); in testSequentialShortCircuitTerminal() 232 assertEquals(knownSize.apply(1).findAny(), OptionalInt.of(1)); in testIntSequentialShortCircuitTerminal() 234 assertEquals(unknownSize.apply(1).findAny(), OptionalInt.of(1)); in testIntSequentialShortCircuitTerminal() 280 assertEquals(knownSize.apply(1).findAny(), OptionalLong.of(1)); in testLongSequentialShortCircuitTerminal() 282 assertEquals(unknownSize.apply(1).findAny(), OptionalLong.of(1)); in testLongSequentialShortCircuitTerminal() 328 assertEquals(knownSize.apply(1).findAny(), OptionalDouble.of(1)); in testDoubleSequentialShortCircuitTerminal() 330 assertEquals(unknownSize.apply(1).findAny(), OptionalDouble.of(1)); in testDoubleSequentialShortCircuitTerminal()
|
D | DistinctOpTest.java | 72 … Optional<Integer> oi = Stream.iterate(1, i -> i + 1).unordered().parallel().distinct().findAny(); in testWithUnorderedInfiniteStream() 75 oi = ThreadLocalRandom.current().ints().boxed().parallel().distinct().findAny(); in testWithUnorderedInfiniteStream()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | DoubleStream.java | 692 OptionalDouble findAny(); in findAny() method
|
D | IntStream.java | 635 OptionalInt findAny(); in findAny() method
|
D | LongStream.java | 640 OptionalLong findAny(); in findAny() method
|
D | Stream.java | 955 Optional<T> findAny(); in findAny() method
|
D | DoublePipeline.java | 516 public final OptionalDouble findAny() {
|
D | IntPipeline.java | 513 public final OptionalInt findAny() {
|
D | LongPipeline.java | 495 public final OptionalLong findAny() {
|
D | ReferencePipeline.java | 486 public final Optional<P_OUT> findAny() {
|