Home
last modified time | relevance | path

Searched refs:mapToInt (Results 1 – 23 of 23) sorted by relevance

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DSummaryStatisticsTest.java48 instances.add(countTo(1000).stream().mapToInt(i -> i).summaryStatistics()); in testIntStatistics()
50 instances.add(countTo(1000).parallelStream().mapToInt(i -> i).summaryStatistics()); in testIntStatistics()
54 assertEquals(stats.getSum(), countTo(1000).stream().mapToInt(i -> i).sum()); in testIntStatistics()
69 assertEquals(stats.getSum(), (long) countTo(1000).stream().mapToInt(i -> i).sum()); in testLongStatistics()
84 assertEquals(stats.getSum(), (double) countTo(1000).stream().mapToInt(i -> i).sum()); in testDoubleStatistics()
DMapOpTest.java70 .mapToInt(i -> i - 1) in testEveryMapShape()
76 .mapToInt(i -> (int) (double) i) in testEveryMapShape()
80 .mapToInt(i -> (int) i) in testEveryMapShape()
82 1000, countTo(1000).stream().mapToInt(i -> i).sum()); in testEveryMapShape()
92 exerciseOps(data, s -> s.mapToInt(i -> i)); in testOps()
122 exerciseOps(data, s -> s.mapToInt(i -> (int) i)); in testLongOps()
136 exerciseOps(data, s -> s.mapToInt(i -> (int) i)); in testDoubleOps()
DConcatOpTest.java52 s -> IntStream.concat(s, data.stream().mapToInt(Integer::intValue)), in testOps()
99 LongStream.range(0, Long.MAX_VALUE).mapToInt(i -> (int) i), in testIntSize()
100 LongStream.range(0, Long.MAX_VALUE).mapToInt(i -> (int) i))); in testIntSize()
103 LongStream.range(0, Long.MAX_VALUE).mapToInt(i -> (int) i), in testIntSize()
108 LongStream.range(0, Long.MAX_VALUE).mapToInt(i -> (int) i))); in testIntSize()
DCountLargeTest.java52 .mapToInt(e -> 0).count(); in testIntLarge()
DConcatTest.java152 IntStream result = IntStream.concat(s1.mapToInt(Integer::intValue), in assertIntConcat()
153 s2.mapToInt(Integer::intValue)); in assertIntConcat()
156 expected.stream().mapToInt(Integer::intValue).spliterator()); in assertIntConcat()
DIntPrimitiveOpsTests.java84 long sum = Arrays.asList(1, 2, 3, 4, 5).stream().mapToInt(i -> (int) i).sum(); in testUnBox()
DExplodeOpTest.java91 …esult = exerciseOps(data, s -> s.flatMap(i -> Collections.singleton(i).stream().mapToInt(j -> j))); in testIntOps()
DGroupByOpTest.java67 int[] ints = countTo(10).stream().mapToInt(e -> (int) e).toArray(); in testBypassCollect()
DTabulatorsTest.java314 s -> s.mapToInt(x -> x * 2).average().orElse(0));
333 s -> s.mapToInt(x -> x * 2).average().orElse(0));
DInfiniteStreamWithLimitOpTest.java325 stream(s -> fs.apply(s.unordered().mapToInt(i -> (int) i))).
DSliceOpTest.java296 ms[1] = s -> mInt.apply(s.mapToInt(e -> e)).mapToObj(e -> e);
DSortedOpTest.java69 s.mapToInt(i -> (int) i) in testIntStreamTooLarge()
/libcore/luni/src/test/java/libcore/java/util/
DArraysTest.java411 int[] listInInt = Arrays.stream(list).mapToInt(x -> (int) x).toArray(); in test_parallelPrefix$D()
412 int[] seqResultInInt = Arrays.stream(seqResult).mapToInt(x -> (int) x).toArray(); in test_parallelPrefix$D()
450 int[] listInInt = Arrays.stream(list).mapToInt(x -> (int) x).toArray(); in test_parallelPrefix$DII()
451 int[] seqResultInInt = Arrays.stream(seqResult).mapToInt(x -> (int) x).toArray(); in test_parallelPrefix$DII()
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DSliceSpliteratorTest.java90 … Spliterator.OfInt s = Arrays.spliterator(source.stream().mapToInt(i->i).toArray()); in sliceSpliteratorDataProvider()
147 … Spliterator.OfInt s = Arrays.spliterator(source.stream().mapToInt(i->i).toArray()); in sliceSpliteratorDataProvider()
/libcore/ojluni/src/main/java/java/util/stream/
DDoubleStream.java135 IntStream mapToInt(DoubleToIntFunction mapper); in mapToInt() method
DLongStream.java136 IntStream mapToInt(LongToIntFunction mapper); in mapToInt() method
DStream.java198 IntStream mapToInt(ToIntFunction<? super T> mapper); in mapToInt() method
DDoublePipeline.java232 public final IntStream mapToInt(DoubleToIntFunction mapper) {
DIntPipeline.java414 return boxed().distinct().mapToInt(i -> i);
DLongPipeline.java250 public final IntStream mapToInt(LongToIntFunction mapper) {
DReferencePipeline.java211 public final IntStream mapToInt(ToIntFunction<? super P_OUT> mapper) {
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DOpTestCase.java136 ms[1] = s -> mInt.apply(s.mapToInt(e -> e)).mapToObj(e -> e); in exerciseOpsInt()
177 m.put("Int " + desc, s -> mInt.apply(s.mapToInt(e -> e)).mapToObj(e -> e)); in exerciseTerminalOpsInt()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DOpTestCase.java137 ms[1] = s -> mInt.apply(s.mapToInt(e -> e)).mapToObj(e -> e); in exerciseOpsInt()
178 m.put("Int " + desc, s -> mInt.apply(s.mapToInt(e -> e)).mapToObj(e -> e)); in exerciseTerminalOpsInt()