Home
last modified time | relevance | path

Searched refs:flatMap (Results 1 – 14 of 14) sorted by relevance

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DExplodeOpTest.java61 assertConcat(strings.flatMap(flattenChars).iterator(), "hellothereyada"); in testFlatMap()
63 assertCountSum(countTo(10).stream().flatMap(mfId), 10, 55); in testFlatMap()
64 assertCountSum(countTo(10).stream().flatMap(mfNull), 0, 0); in testFlatMap()
65 assertCountSum(countTo(3).stream().flatMap(mfLt), 6, 4); in testFlatMap()
67 … exerciseOps(TestData.Factory.ofArray("stringsArray", stringsArray), s -> s.flatMap(flattenChars)); in testFlatMap()
68 …TestData.Factory.ofArray("LONG_STRING", new String[] {LONG_STRING}), s -> s.flatMap(flattenChars)); in testFlatMap()
73 Collection<Integer> result = exerciseOps(data, s -> s.flatMap(mfId)); in testOps()
76 result = exerciseOps(data, s -> s.flatMap(mfNull)); in testOps()
79 result = exerciseOps(data, s-> s.flatMap(e -> Stream.empty())); in testOps()
82 exerciseOps(data, s -> s.flatMap(mfLt)); in testOps()
[all …]
DToArrayOpTest.java88 … s -> s.flatMap(e -> Arrays.stream(new Object[] { e, e })), in testOpsWithFlatMap()
242 … s -> s.flatMap(e -> Arrays.stream(new int[] { e, e })),
315 … s -> s.flatMap(e -> Arrays.stream(new long[] { e, e })),
388 … s -> s.flatMap(e -> Arrays.stream(new double[] { e, e })),
/libcore/luni/src/test/java/libcore/java/util/
DOptionalTest.java134 assertSame(empty, empty.flatMap(alwaysFail)); in testFlatMap()
135 assertSame(empty, ofNull.flatMap(alwaysFail)); in testFlatMap()
143 Optional<String> mapped = optionalFoo.flatMap(identity); in testFlatMap()
150 optionalFoo.flatMap(alwaysNull); in testFlatMap()
156 optionalFoo.flatMap(null); in testFlatMap()
/libcore/ojluni/src/main/java/java/util/
DOptional.java232 public<U> Optional<U> flatMap(Function<? super T, Optional<U>> mapper) { in flatMap() method in Optional
/libcore/ojluni/src/main/java/java/util/stream/
DDoubleStream.java169 DoubleStream flatMap(DoubleFunction<? extends DoubleStream> mapper); in flatMap() method
DIntStream.java165 IntStream flatMap(IntFunction<? extends IntStream> mapper); in flatMap() method
DLongStream.java170 LongStream flatMap(LongFunction<? extends LongStream> mapper); in flatMap() method
DStream.java270 <R> Stream<R> flatMap(Function<? super T, ? extends Stream<? extends R>> mapper); in flatMap() method
DDoublePipeline.java268 public final DoubleStream flatMap(DoubleFunction<? extends DoubleStream> mapper) {
DIntPipeline.java305 public final IntStream flatMap(IntFunction<? extends IntStream> mapper) {
DLongPipeline.java286 public final LongStream flatMap(LongFunction<? extends LongStream> mapper) {
DReferencePipeline.java265 …public final <R> Stream<R> flatMap(Function<? super P_OUT, ? extends Stream<? extends R>> mapper) {
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DSpinedBufferTest.java45 .flatMap(i -> Arrays.stream(new int[] { i-2, i-1, i, i+1, i+2 }))
/libcore/jsr166-tests/src/test/java/jsr166/
DCompletableFutureTest.java3736 .flatMap((klazz) -> (Stream<Method>) Stream.of(klazz.getMethods())) in testMinimalCompletionStage_minimality()