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/ |
D | ExplodeOpTest.java | 61 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 …]
|
D | ToArrayOpTest.java | 88 … 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/ |
D | OptionalTest.java | 134 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/ |
D | Optional.java | 232 public<U> Optional<U> flatMap(Function<? super T, Optional<U>> mapper) { in flatMap() method in Optional
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | DoubleStream.java | 169 DoubleStream flatMap(DoubleFunction<? extends DoubleStream> mapper); in flatMap() method
|
D | IntStream.java | 165 IntStream flatMap(IntFunction<? extends IntStream> mapper); in flatMap() method
|
D | LongStream.java | 170 LongStream flatMap(LongFunction<? extends LongStream> mapper); in flatMap() method
|
D | Stream.java | 270 <R> Stream<R> flatMap(Function<? super T, ? extends Stream<? extends R>> mapper); in flatMap() method
|
D | IntPipeline.java | 305 public final IntStream flatMap(IntFunction<? extends IntStream> mapper) {
|
D | DoublePipeline.java | 268 public final DoubleStream flatMap(DoubleFunction<? extends DoubleStream> mapper) {
|
D | LongPipeline.java | 286 public final LongStream flatMap(LongFunction<? extends LongStream> mapper) {
|
D | ReferencePipeline.java | 265 …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/ |
D | SpinedBufferTest.java | 45 .flatMap(i -> Arrays.stream(new int[] { i-2, i-1, i, i+1, i+2 }))
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | CompletableFutureTest.java | 3736 .flatMap((klazz) -> (Stream<Method>) Stream.of(klazz.getMethods())) in testMinimalCompletionStage_minimality()
|