Home
last modified time | relevance | path

Searched refs:findAny (Results 1 – 17 of 17) sorted by relevance

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DFindAnyOpTest.java54 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()
DSortedOpTest.java158 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()
DDistinctOpTest.java71 … 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/
DDefaultMethodStreams.java342 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/
DDoubleStream.annotated.java94 public java.util.OptionalDouble findAny(); in findAny() method
DIntStream.annotated.java94 public java.util.OptionalInt findAny(); in findAny() method
DLongStream.annotated.java94 public java.util.OptionalLong findAny(); in findAny() method
/libcore/ojluni/src/main/java/java/util/stream/
DDoubleStream.java913 OptionalDouble findAny(); in findAny() method
DIntStream.java831 OptionalInt findAny(); in findAny() method
DLongStream.java832 OptionalLong findAny(); in findAny() method
DStream.java1366 Optional<T> findAny();
DIntPipeline.java574 public final OptionalInt findAny() {
DLongPipeline.java557 public final OptionalLong findAny() {
DDoublePipeline.java582 public final OptionalDouble findAny() {
DReferencePipeline.java675 public final Optional<P_OUT> findAny() {
/libcore/tools/openjdk-analyzer/src/libcore/tools/analyzer/openjdk/
DMain.java454 .findAny() in printInsn()
/libcore/api/
Dcurrent.txt18251 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();