Home
last modified time | relevance | path

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/
DMapOpTest.java72 .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()
DSummaryStatisticsTest.java63 instances.add(countTo(1000).stream().mapToLong(i -> i).summaryStatistics()); in testLongStatistics()
65 instances.add(countTo(1000).parallelStream().mapToLong(i -> i).summaryStatistics()); in testLongStatistics()
DConcatTest.java160 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()
DLongPrimitiveOpsTests.java84 long sum = Arrays.asList(1L, 2L, 3L, 4L, 5L).stream().mapToLong(i -> (long) i).sum(); in testUnBox()
DConcatOpTest.java53 s -> LongStream.concat(s, data.stream().mapToLong(Integer::longValue)), in testOps()
DExplodeOpTest.java106 …sult = exerciseOps(data, s -> s.flatMap(i -> Collections.singleton(i).stream().mapToLong(j -> j))); in testLongOps()
DSliceOpTest.java297 ms[2] = s -> mLong.apply(s.mapToLong(e -> e)).mapToObj(e -> (int) e);
DTabulatorsTest.java316 s -> s.mapToLong(x -> x * 2).average().orElse(0));
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DSliceSpliteratorTest.java103 … 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/
DDoubleStream.java149 LongStream mapToLong(DoubleToLongFunction mapper); in mapToLong() method
DIntStream.java131 LongStream mapToLong(IntToLongFunction mapper); in mapToLong() method
DDoublePipeline.java250 public final LongStream mapToLong(DoubleToLongFunction mapper) {
465 return mapToLong(e -> 1L).sum();
DIntPipeline.java269 public final LongStream mapToLong(IntToLongFunction mapper) {
446 return mapToLong(e -> 1L).sum();
DStream.java212 LongStream mapToLong(ToLongFunction<? super T> mapper); in mapToLong() method
DReferencePipeline.java229 public final LongStream mapToLong(ToLongFunction<? super P_OUT> mapper) {
544 return mapToLong(e -> 1L).sum();
DLongPipeline.java395 return boxed().distinct().mapToLong(i -> (long) i);
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DOpTestCase.java137 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/
DOpTestCase.java138 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()