Searched refs:mapToLong (Results 1 – 18 of 18) sorted by relevance
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | MapOpTest.java | 72 .mapToLong(i -> i - 1) in testEveryMapShape() 77 .mapToLong(i -> i) in testEveryMapShape() 79 .mapToLong(i -> (long) i) in testEveryMapShape() 93 exerciseOps(data, s -> s.mapToLong(i -> i)); in testOps() 108 exerciseOps(data, s -> s.mapToLong(i -> i)); in testIntOps() 135 exerciseOps(data, s -> s.mapToLong(i -> (long) i)); in testDoubleOps()
|
D | SummaryStatisticsTest.java | 63 instances.add(countTo(1000).stream().mapToLong(i -> i).summaryStatistics()); in testLongStatistics() 65 instances.add(countTo(1000).parallelStream().mapToLong(i -> i).summaryStatistics()); in testLongStatistics()
|
D | ConcatTest.java | 160 LongStream result = LongStream.concat(s1.mapToLong(Integer::longValue), in assertLongConcat() 161 s2.mapToLong(Integer::longValue)); in assertLongConcat() 164 expected.stream().mapToLong(Integer::longValue).spliterator()); in assertLongConcat()
|
D | LongPrimitiveOpsTests.java | 84 long sum = Arrays.asList(1L, 2L, 3L, 4L, 5L).stream().mapToLong(i -> (long) i).sum(); in testUnBox()
|
D | ConcatOpTest.java | 53 s -> LongStream.concat(s, data.stream().mapToLong(Integer::longValue)), in testOps()
|
D | ExplodeOpTest.java | 106 …sult = exerciseOps(data, s -> s.flatMap(i -> Collections.singleton(i).stream().mapToLong(j -> j))); in testLongOps()
|
D | SliceOpTest.java | 297 ms[2] = s -> mLong.apply(s.mapToLong(e -> e)).mapToObj(e -> (int) e);
|
D | TabulatorsTest.java | 316 s -> s.mapToLong(x -> x * 2).average().orElse(0));
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
D | SliceSpliteratorTest.java | 103 … Spliterator.OfLong s = Arrays.spliterator(source.stream().mapToLong(i->i).toArray()); in sliceSpliteratorDataProvider() 161 … Spliterator.OfLong s = Arrays.spliterator(source.stream().mapToLong(i->i).toArray()); in sliceSpliteratorDataProvider()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | DoubleStream.java | 147 LongStream mapToLong(DoubleToLongFunction mapper); in mapToLong() method
|
D | IntStream.java | 131 LongStream mapToLong(IntToLongFunction mapper); in mapToLong() method
|
D | DoublePipeline.java | 240 public final LongStream mapToLong(DoubleToLongFunction mapper) { 450 return mapToLong(e -> 1L).sum();
|
D | IntPipeline.java | 259 public final LongStream mapToLong(IntToLongFunction mapper) { 430 return mapToLong(e -> 1L).sum();
|
D | Stream.java | 209 LongStream mapToLong(ToLongFunction<? super T> mapper); in mapToLong() method
|
D | ReferencePipeline.java | 219 public final LongStream mapToLong(ToLongFunction<? super P_OUT> mapper) { 528 return mapToLong(e -> 1L).sum();
|
D | LongPipeline.java | 379 return boxed().distinct().mapToLong(i -> (long) i);
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | OpTestCase.java | 137 ms[2] = s -> mLong.apply(s.mapToLong(e -> e)).mapToObj(e -> (int) e); in exerciseOpsInt() 178 m.put("Long " + desc, s -> mLong.apply(s.mapToLong(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 | 138 ms[2] = s -> mLong.apply(s.mapToLong(e -> e)).mapToObj(e -> (int) e); in exerciseOpsInt() 179 m.put("Long " + desc, s -> mLong.apply(s.mapToLong(e -> e)).mapToObj(e -> (int) e)); in exerciseTerminalOpsInt()
|