| /libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
| D | CollectAndSummaryStatisticsTest.java | 90 instances.add(countTo(1000).stream().mapToInt(i -> i).summaryStatistics()); in testIntStatistics() 91 instances.add(countTo(1000).stream().mapToInt(i -> i).collect(IntSummaryStatistics::new, in testIntStatistics() 94 …instances.add(countTo(1000).stream().mapToInt(i -> i).collect(() -> new IntSummaryStatistics(0, -1… in testIntStatistics() 98 instances.add(countTo(1000).parallelStream().mapToInt(i -> i).summaryStatistics()); in testIntStatistics() 99 … instances.add(countTo(1000).parallelStream().mapToInt(i -> i).collect(IntSummaryStatistics::new, in testIntStatistics() 102 …instances.add(countTo(1000).parallelStream().mapToInt(i -> i).collect(() -> new IntSummaryStatisti… in testIntStatistics() 110 assertEquals(stats.getSum(), countTo(1000).stream().mapToInt(i -> i).sum()); in testIntStatistics() 128 …instances.add(countTo(1000).stream().mapToInt(i -> i).collect(() -> new LongSummaryStatistics(0, -… in testLongStatistics() 136 …instances.add(countTo(1000).parallelStream().mapToInt(i -> i).collect(() -> new LongSummaryStatist… in testLongStatistics() 144 assertEquals(stats.getSum(), (long) countTo(1000).stream().mapToInt(i -> i).sum()); in testLongStatistics() [all …]
|
| 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 | 72 .mapToInt(i -> i - 1) in testEveryMapShape() 78 .mapToInt(i -> (int) (double) i) in testEveryMapShape() 82 .mapToInt(i -> (int) i) in testEveryMapShape() 84 1000, countTo(1000).stream().mapToInt(i -> i).sum()); in testEveryMapShape() 95 exerciseOps(data, s -> s.mapToInt(i -> i)); in testOps() 127 exerciseOps(data, s -> s.mapToInt(i -> (int) i)); in testLongOps() 142 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 | 65 .mapToInt(e -> 0).count(); in testIntLarge() 71 .mapToInt(e -> 0).filter(e -> true).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 | WhileOpTest.java | 307 ms.put("Int", s -> mInt.apply(s.mapToInt(e -> e)).mapToObj(e -> e)); 311 …ms.put("Int using defaults", s -> mInt.apply(DefaultMethodStreams.delegateTo(s.mapToInt(e -> e))).… 385 s -> Stream.of(s.mapToInt(e -> e).toArray()).
|
| D | ExplodeOpTest.java | 94 …esult = exerciseOps(data, s -> s.flatMap(i -> Collections.singleton(i).stream().mapToInt(j -> j))); in testIntOps()
|
| D | CollectorsTest.java | 393 s -> s.mapToInt(x -> x * 2).average().orElse(0)); 412 s -> s.mapToInt(x -> x * 2).average().orElse(0)); 797 …assertCollect(data, averaging, stream -> stream.mapToInt(Integer::intValue).average().orElse(Doubl… 799 stream -> stream.mapToInt(Integer::intValue).summaryStatistics().toString());
|
| D | GroupByOpTest.java | 67 int[] ints = countTo(10).stream().mapToInt(e -> (int) e).toArray(); in testBypassCollect()
|
| D | IntPrimitiveOpsTests.java | 92 long sum = Arrays.asList(1, 2, 3, 4, 5).stream().mapToInt(i -> (int) i).sum(); in testUnBox()
|
| 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 | 328 stream(s -> fs.apply(s.unordered().mapToInt(i -> (int) i))).
|
| /libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
| D | DefaultMethodStreams.java | 197 public IntStream mapToInt(ToIntFunction<? super T> mapper) { in mapToInt() method in DefaultMethodStreams.DefaultMethodRefStream 198 return s.mapToInt(mapper); in mapToInt() 624 public IntStream mapToInt(LongToIntFunction mapper) { in mapToInt() method in DefaultMethodStreams.DefaultMethodLongStream 625 return s.mapToInt(mapper); in mapToInt() 817 public IntStream mapToInt(DoubleToIntFunction mapper) { in mapToInt() method in DefaultMethodStreams.DefaultMethodDoubleStream 818 return s.mapToInt(mapper); in mapToInt()
|
| 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()
|
| /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/luni/src/test/java/libcore/java/util/ |
| D | ArraysTest.java | 445 int[] listInInt = Arrays.stream(list).mapToInt(x -> (int) x).toArray(); in parallelPrefix$D() 446 int[] seqResultInInt = Arrays.stream(seqResult).mapToInt(x -> (int) x).toArray(); in parallelPrefix$D() 485 int[] listInInt = Arrays.stream(list).mapToInt(x -> (int) x).toArray(); in parallelPrefix$DII() 486 int[] seqResultInInt = Arrays.stream(seqResult).mapToInt(x -> (int) x).toArray(); in parallelPrefix$DII() 873 .mapToInt(i -> Integer.parseInt(i) * 2) in streamObject()
|
| /libcore/ojluni/annotations/flagged_api/java/util/stream/ |
| D | DoubleStream.annotated.java | 37 public java.util.stream.IntStream mapToInt(java.util.function.DoubleToIntFunction mapper); in mapToInt() method
|
| D | LongStream.annotated.java | 37 public java.util.stream.IntStream mapToInt(java.util.function.LongToIntFunction mapper); in mapToInt() method
|
| /libcore/ojluni/src/main/java/java/util/stream/ |
| D | DoubleStream.java | 130 IntStream mapToInt(DoubleToIntFunction mapper); in mapToInt() method
|
| D | LongStream.java | 131 IntStream mapToInt(LongToIntFunction mapper); in mapToInt() method
|
| D | Stream.java | 208 IntStream mapToInt(ToIntFunction<? super T> mapper); in mapToInt() method
|
| D | DoublePipeline.java | 236 public final IntStream mapToInt(DoubleToIntFunction 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/Collectors/ |
| D | CollectorsTest.java | 375 s -> s.mapToInt(x -> x * 2).average().orElse(0)); 394 s -> s.mapToInt(x -> x * 2).average().orElse(0));
|