/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | FindAnyOpTest.java | 54 assertFalse(Collections.emptySet().stream().findAny().isPresent(), "no result"); in testFindAny() 55 assertFalse(countTo(10).stream().filter(x -> x > 10).findAny().isPresent(), "no result"); in testFindAny() 56 assertTrue(countTo(10).stream().filter(pEven).findAny().isPresent(), "with result"); in testFindAny() 60 assertFalse(Collections.emptySet().parallelStream().findAny().isPresent(), "no result"); in testFindAnyParallel() 61 …assertFalse(countTo(1000).parallelStream().filter(x -> x > 1000).findAny().isPresent(), "no result… in testFindAnyParallel() 62 … assertTrue(countTo(1000).parallelStream().filter(pEven).findAny().isPresent(), "with result"); in testFindAnyParallel() 74 …Optional<Integer> or = withData(data).terminal(fs, s -> s.findAny()).equalator(VALID_ANSWER).exerc… in exerciseStream() 87 …OptionalInt or = withData(data).terminal(fs, s -> s.findAny()).equalator(INT_VALID_ANSWER).exercis… in exerciseIntStream() 111 …OptionalLong or = withData(data).terminal(fs, s -> s.findAny()).equalator(LONG_VALID_ANSWER).exerc… in exerciseLongStream() 135 …OptionalDouble or = withData(data).terminal(fs, s -> s.findAny()).equalator(DOUBLE_VALID_ANSWER).e… in exerciseDoubleStream()
|
D | SortedOpTest.java | 158 assertEquals(knownSize.apply(1).findAny(), Optional.of(1)); in testSequentialShortCircuitTerminal() 160 assertEquals(unknownSize.apply(1).findAny(), Optional.of(1)); in testSequentialShortCircuitTerminal() 235 assertEquals(knownSize.apply(1).findAny(), OptionalInt.of(1)); in testIntSequentialShortCircuitTerminal() 237 assertEquals(unknownSize.apply(1).findAny(), OptionalInt.of(1)); in testIntSequentialShortCircuitTerminal() 283 assertEquals(knownSize.apply(1).findAny(), OptionalLong.of(1)); in testLongSequentialShortCircuitTerminal() 285 assertEquals(unknownSize.apply(1).findAny(), OptionalLong.of(1)); in testLongSequentialShortCircuitTerminal() 331 assertEquals(knownSize.apply(1).findAny(), OptionalDouble.of(1)); in testDoubleSequentialShortCircuitTerminal() 333 assertEquals(unknownSize.apply(1).findAny(), OptionalDouble.of(1)); in testDoubleSequentialShortCircuitTerminal()
|
D | DistinctOpTest.java | 71 … Optional<Integer> oi = Stream.iterate(1, i -> i + 1).unordered().parallel().distinct().findAny(); in testWithUnorderedInfiniteStream() 74 oi = ThreadLocalRandom.current().ints().boxed().parallel().distinct().findAny(); in testWithUnorderedInfiniteStream()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | DefaultMethodStreams.java | 342 public Optional<T> findAny() { in findAny() method in DefaultMethodStreams.DefaultMethodRefStream 343 return s.findAny(); in findAny() 533 public OptionalInt findAny() { in findAny() method in DefaultMethodStreams.DefaultMethodIntStream 534 return s.findAny(); in findAny() 739 public OptionalLong findAny() { in findAny() method in DefaultMethodStreams.DefaultMethodLongStream 740 return s.findAny(); in findAny() 937 public OptionalDouble findAny() { in findAny() method in DefaultMethodStreams.DefaultMethodDoubleStream 938 return s.findAny(); in findAny()
|
/libcore/ojluni/annotations/flagged_api/java/util/stream/ |
D | DoubleStream.annotated.java | 94 public java.util.OptionalDouble findAny(); in findAny() method
|
D | IntStream.annotated.java | 94 public java.util.OptionalInt findAny(); in findAny() method
|
D | LongStream.annotated.java | 94 public java.util.OptionalLong findAny(); in findAny() method
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | DoubleStream.java | 913 OptionalDouble findAny(); in findAny() method
|
D | IntStream.java | 831 OptionalInt findAny(); in findAny() method
|
D | LongStream.java | 832 OptionalLong findAny(); in findAny() method
|
D | Stream.java | 1366 Optional<T> findAny();
|
D | IntPipeline.java | 574 public final OptionalInt findAny() {
|
D | LongPipeline.java | 557 public final OptionalLong findAny() {
|
D | DoublePipeline.java | 582 public final OptionalDouble findAny() {
|
D | ReferencePipeline.java | 675 public final Optional<P_OUT> findAny() {
|
/libcore/tools/openjdk-analyzer/src/libcore/tools/analyzer/openjdk/ |
D | Main.java | 454 .findAny() in printInsn()
|
/libcore/api/ |
D | current.txt | 18251 method public java.util.OptionalDouble findAny(); 18309 method public java.util.OptionalInt findAny(); 18368 method public java.util.OptionalLong findAny(); 18425 method public java.util.Optional<T> findAny();
|