Home
last modified time | relevance | path

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/
DConcatOpTest.java54 … 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()
DMapOpTest.java74 .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()
DSummaryStatisticsTest.java78 instances.add(countTo(1000).stream().mapToDouble(i -> i).summaryStatistics()); in testDoubleStatistics()
80 instances.add(countTo(1000).parallelStream().mapToDouble(i -> i).summaryStatistics()); in testDoubleStatistics()
DCountLargeTest.java66 .mapToDouble(e -> 0.0).count(); in testDoubleLarge()
DConcatTest.java168 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()
DDoublePrimitiveOpsTests.java41 …double sum = Arrays.asList(1.0, 2.0, 3.0, 4.0, 5.0).stream().mapToDouble(i -> i).reduce(0.0, Doubl… in testUnBox()
DExplodeOpTest.java121 …lt = exerciseOps(data, s -> s.flatMap(i -> Collections.singleton(i).stream().mapToDouble(j -> j))); in testDoubleOps()
DInfiniteStreamWithLimitOpTest.java173 () -> LongStream.range(l, u).mapToDouble(i -> (double) i));
349 stream(s -> fs.apply(s.unordered().mapToDouble(i -> (double) i))).
DSortedOpTest.java87 s.mapToDouble(i -> (double) i) in testDoubleStreamTooLarge()
DSliceOpTest.java298 ms[3] = s -> mDouble.apply(s.mapToDouble(e -> e)).mapToObj(e -> (int) e);
DTabulatorsTest.java318 s -> s.mapToDouble(x -> x * 2).average().orElse(0));
/libcore/ojluni/src/main/java/java/util/stream/
DIntStream.java145 DoubleStream mapToDouble(IntToDoubleFunction mapper); in mapToDouble() method
DLongStream.java150 DoubleStream mapToDouble(LongToDoubleFunction mapper); in mapToDouble() method
DStream.java226 DoubleStream mapToDouble(ToDoubleFunction<? super T> mapper); in mapToDouble() method
DIntPipeline.java287 public final DoubleStream mapToDouble(IntToDoubleFunction mapper) {
DDoublePipeline.java379 return boxed().distinct().mapToDouble(i -> (double) i);
DLongPipeline.java268 public final DoubleStream mapToDouble(LongToDoubleFunction mapper) {
DReferencePipeline.java247 public final DoubleStream mapToDouble(ToDoubleFunction<? super P_OUT> mapper) {
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DSliceSpliteratorTest.java116 … Spliterator.OfDouble s = Arrays.spliterator(source.stream().mapToDouble(i->i).toArray()); in sliceSpliteratorDataProvider()
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DOpTestCase.java138 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/
DOpTestCase.java139 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()