/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | SummaryStatisticsTest.java | 48 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()
|
D | MapOpTest.java | 70 .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()
|
D | ConcatOpTest.java | 52 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()
|
D | CountLargeTest.java | 52 .mapToInt(e -> 0).count(); in testIntLarge()
|
D | ConcatTest.java | 152 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()
|
D | IntPrimitiveOpsTests.java | 84 long sum = Arrays.asList(1, 2, 3, 4, 5).stream().mapToInt(i -> (int) i).sum(); in testUnBox()
|
D | ExplodeOpTest.java | 91 …esult = exerciseOps(data, s -> s.flatMap(i -> Collections.singleton(i).stream().mapToInt(j -> j))); in testIntOps()
|
D | GroupByOpTest.java | 67 int[] ints = countTo(10).stream().mapToInt(e -> (int) e).toArray(); in testBypassCollect()
|
D | TabulatorsTest.java | 314 s -> s.mapToInt(x -> x * 2).average().orElse(0)); 333 s -> s.mapToInt(x -> x * 2).average().orElse(0));
|
D | InfiniteStreamWithLimitOpTest.java | 325 stream(s -> fs.apply(s.unordered().mapToInt(i -> (int) i))).
|
D | SliceOpTest.java | 296 ms[1] = s -> mInt.apply(s.mapToInt(e -> e)).mapToObj(e -> e);
|
D | SortedOpTest.java | 69 s.mapToInt(i -> (int) i) in testIntStreamTooLarge()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ArraysTest.java | 411 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/ |
D | SliceSpliteratorTest.java | 90 … 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/ |
D | DoubleStream.java | 135 IntStream mapToInt(DoubleToIntFunction mapper); in mapToInt() method
|
D | LongStream.java | 136 IntStream mapToInt(LongToIntFunction mapper); in mapToInt() method
|
D | Stream.java | 198 IntStream mapToInt(ToIntFunction<? super T> mapper); in mapToInt() method
|
D | DoublePipeline.java | 232 public final IntStream mapToInt(DoubleToIntFunction mapper) {
|
D | IntPipeline.java | 414 return boxed().distinct().mapToInt(i -> i);
|
D | LongPipeline.java | 250 public final IntStream mapToInt(LongToIntFunction mapper) {
|
D | ReferencePipeline.java | 211 public final IntStream mapToInt(ToIntFunction<? super P_OUT> mapper) {
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | OpTestCase.java | 136 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/ |
D | OpTestCase.java | 137 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()
|