Searched refs:mapToDouble (Results 1 – 21 of 21) sorted by relevance
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | ConcatOpTest.java | 54 … s -> DoubleStream.concat(s, data.stream().mapToDouble(Integer::doubleValue))); in testOps() 113 IntStream.range(0, Integer.MAX_VALUE).mapToDouble(i -> i), in testDoubleSize() 114 IntStream.range(0, Integer.MAX_VALUE).mapToDouble(i -> i))); in testDoubleSize() 117 LongStream.range(0, Long.MAX_VALUE).mapToDouble(i -> i), in testDoubleSize() 118 LongStream.range(0, Long.MAX_VALUE).mapToDouble(i -> i))); in testDoubleSize() 121 LongStream.range(0, Long.MAX_VALUE).mapToDouble(i -> i), in testDoubleSize() 126 LongStream.range(0, Long.MAX_VALUE).mapToDouble(i -> i))); in testDoubleSize()
|
D | MapOpTest.java | 74 .mapToDouble(i -> i - 1) in testEveryMapShape() 78 .mapToDouble(i -> i) in testEveryMapShape() 94 exerciseOps(data, s -> s.mapToDouble(i -> i)); in testOps() 109 exerciseOps(data, s -> s.mapToDouble(i -> i)); in testIntOps() 123 exerciseOps(data, s -> s.mapToDouble(i -> i)); in testLongOps()
|
D | SummaryStatisticsTest.java | 78 instances.add(countTo(1000).stream().mapToDouble(i -> i).summaryStatistics()); in testDoubleStatistics() 80 instances.add(countTo(1000).parallelStream().mapToDouble(i -> i).summaryStatistics()); in testDoubleStatistics()
|
D | CountLargeTest.java | 66 .mapToDouble(e -> 0.0).count(); in testDoubleLarge()
|
D | ConcatTest.java | 168 DoubleStream result = DoubleStream.concat(s1.mapToDouble(Integer::doubleValue), in assertDoubleConcat() 169 s2.mapToDouble(Integer::doubleValue)); in assertDoubleConcat() 172 expected.stream().mapToDouble(Integer::doubleValue).spliterator()); in assertDoubleConcat()
|
D | DoublePrimitiveOpsTests.java | 41 …double sum = Arrays.asList(1.0, 2.0, 3.0, 4.0, 5.0).stream().mapToDouble(i -> i).reduce(0.0, Doubl… in testUnBox()
|
D | ExplodeOpTest.java | 121 …lt = exerciseOps(data, s -> s.flatMap(i -> Collections.singleton(i).stream().mapToDouble(j -> j))); in testDoubleOps()
|
D | InfiniteStreamWithLimitOpTest.java | 173 () -> LongStream.range(l, u).mapToDouble(i -> (double) i)); 349 stream(s -> fs.apply(s.unordered().mapToDouble(i -> (double) i))).
|
D | SliceOpTest.java | 298 ms[3] = s -> mDouble.apply(s.mapToDouble(e -> e)).mapToObj(e -> (int) e);
|
D | SortedOpTest.java | 87 s.mapToDouble(i -> (double) i) in testDoubleStreamTooLarge()
|
D | TabulatorsTest.java | 318 s -> s.mapToDouble(x -> x * 2).average().orElse(0));
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | IntStream.java | 145 DoubleStream mapToDouble(IntToDoubleFunction mapper); in mapToDouble() method
|
D | LongStream.java | 150 DoubleStream mapToDouble(LongToDoubleFunction mapper); in mapToDouble() method
|
D | Stream.java | 226 DoubleStream mapToDouble(ToDoubleFunction<? super T> mapper); in mapToDouble() method
|
D | DoublePipeline.java | 379 return boxed().distinct().mapToDouble(i -> (double) i);
|
D | IntPipeline.java | 287 public final DoubleStream mapToDouble(IntToDoubleFunction mapper) {
|
D | LongPipeline.java | 268 public final DoubleStream mapToDouble(LongToDoubleFunction mapper) {
|
D | ReferencePipeline.java | 247 public final DoubleStream mapToDouble(ToDoubleFunction<? super P_OUT> mapper) {
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
D | SliceSpliteratorTest.java | 116 … Spliterator.OfDouble s = Arrays.spliterator(source.stream().mapToDouble(i->i).toArray()); in sliceSpliteratorDataProvider()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | OpTestCase.java | 138 ms[3] = s -> mDouble.apply(s.mapToDouble(e -> e)).mapToObj(e -> (int) e); in exerciseOpsInt() 179 m.put("Double " + desc, s -> mDouble.apply(s.mapToDouble(e -> e)).mapToObj(e -> (int) e)); in exerciseTerminalOpsInt()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | OpTestCase.java | 139 ms[3] = s -> mDouble.apply(s.mapToDouble(e -> e)).mapToObj(e -> (int) e); in exerciseOpsInt() 180 m.put("Double " + desc, s -> mDouble.apply(s.mapToDouble(e -> e)).mapToObj(e -> (int) e)); in exerciseTerminalOpsInt()
|