/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | SummaryStatisticsTest.java | 47 instances.add(countTo(1000).stream().collect(Collectors.summarizingInt(i -> i))); in testIntStatistics() 49 instances.add(countTo(1000).parallelStream().collect(Collectors.summarizingInt(i -> i))); in testIntStatistics() 62 instances.add(countTo(1000).stream().collect(Collectors.summarizingLong(i -> i))); in testLongStatistics() 64 instances.add(countTo(1000).parallelStream().collect(Collectors.summarizingLong(i -> i))); in testLongStatistics() 77 instances.add(countTo(1000).stream().collect(Collectors.summarizingDouble(i -> i))); in testDoubleStatistics() 79 instances.add(countTo(1000).parallelStream().collect(Collectors.summarizingDouble(i -> i))); in testDoubleStatistics()
|
D | ReduceByOpTest.java | 51 …Map<Boolean,List<Integer>> gbResult = data.stream().collect(groupingBy(LambdaTestHelpers.forPredic… in testOps() 52 …Map<Boolean, Integer> result = data.stream().collect(groupingBy(LambdaTestHelpers.forPredicate(pEv… in testOps() 61 … Map<Integer, List<Integer>> mgResult = exerciseTerminalOps(data, s -> s.collect(groupingBy(mId))); in testOps() 62 …Map<Integer, Integer> miResult = exerciseTerminalOps(data, s -> s.collect(groupingBy(mId, reducing… in testOps()
|
D | TabulatorsTest.java | 100 assertContentsUnordered(map.keySet(), source.get().map(classifier).collect(toSet())); in assertValue() 128 Set<K> uniqueKeys = source.get().map(keyFn).collect(toSet()); in assertValue() 253 .terminal(s -> s.collect(collector)) 259 .terminal(s -> s.unordered().collect(collector)) 284 withData(data).terminal(s -> s.collect(collector)).expectedResult(check).exercise(); 339 .terminal(s -> s.map(Object::toString).collect(Collectors.joining())) 345 .terminal(s -> s.map(Object::toString).collect(likeJoining)) 350 .terminal(s -> s.map(Object::toString).collect(Collectors.joining(","))) 355 .terminal(s -> s.map(Object::toString).collect(Collectors.joining(",", "[", "]"))) 361 … .collect(StringBuilder::new, StringBuilder::append, StringBuilder::append) [all …]
|
D | GroupByOpTest.java | 85 …Map<Boolean,List<Integer>> result = countTo(10).stream().collect(Collectors.groupingBy(LambdaTestH… in testGroupBy() 137 .terminal(s -> s, s -> s.collect(tab)) in testOps()
|
D | StreamBuilderTest.java | 126 expectedResult(IntStream.range(0, size).boxed().collect(toList())). in testStreamBuilder() 131 expectedResult(IntStream.range(0, size).boxed().collect(toList())). in testStreamBuilder()
|
D | StreamLinkTest.java | 64 … List<Integer> expected = data.stream().map(e -> (Integer) (e + n)).collect(Collectors.toList());
|
D | IntPrimitiveOpsTests.java | 78 List<Integer> l = IntStream.range(1, 10).parallel().boxed().collect(Collectors.toList()); in testBox()
|
D | LongPrimitiveOpsTests.java | 78 List<Long> l = LongStream.range(1, 10).parallel().boxed().collect(Collectors.toList()); in testBox()
|
D | DistinctOpTest.java | 181 .collect(Collectors.toList()); in testStable()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/ |
D | FillableStringTest.java | 43 String s = generate().collect(Collectors.joining()); in testStringBuilder() 48 String s = generate().collect(Collectors.joining()); in testStringBuffer() 53 String s = generate().collect(Collectors.joining("-")); in testStringJoiner()
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
D | SliceSpliteratorTest.java | 74 … final Collection<Integer> source = IntStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider() 87 … final Collection<Integer> source = IntStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider() 100 … final Collection<Long> source = LongStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider() 113 … Collection<Double> source = LongStream.range(0, size).asDoubleStream().boxed().collect(toList()); in sliceSpliteratorDataProvider() 129 … final Collection<Integer> source = IntStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider() 143 … final Collection<Integer> source = IntStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider() 157 … final Collection<Long> source = LongStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider() 171 … Collection<Double> source = LongStream.range(0, size).asDoubleStream().boxed().collect(toList()); in sliceSpliteratorDataProvider()
|
D | SpinedBufferTest.java | 49 .collect(Collectors.toList()); 113 .collect(Collectors.toList()); in testLastSplit() 188 .collect(Collectors.toList()); in testIntLastSplit() 263 .collect(Collectors.toList()); in testLongLastSplit() 339 .collect(Collectors.toList()); in testLongLastSplit()
|
D | StreamOpFlagsTest.java | 119 … = StreamOpFlagTestHelper.allStreamFlags().stream().map(StreamOpFlag::set).collect(toList()); in testPairSet() 138 … = StreamOpFlagTestHelper.allStreamFlags().stream().map(StreamOpFlag::set).collect(toList()); in testPairSetAndClear()
|
/libcore/ojluni/src/test/java/util/stream/ |
D | TestDoubleSumAverage.java | 79 DoubleSummaryStatistics stats = ds.get().collect(DoubleSummaryStatistics::new, in testForCompenstation() 92 … ds.get().boxed().collect(Collectors.summingDouble(d -> d)), 3); in testForCompenstation() 94 … ds.get().boxed().collect(Collectors.averagingDouble(d -> d)),3); in testForCompenstation() 128 DoubleSummaryStatistics stats = ds.get().collect(DoubleSummaryStatistics::new, in testNonfiniteSum() 138 …failures += compareUlpDifference(expected, ds.get().boxed().collect(Collectors.summingDouble(d -> … in testNonfiniteSum() 139 …failures += compareUlpDifference(expected, ds.get().boxed().collect(Collectors.averagingDouble(d -… in testNonfiniteSum()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | StreamTestScenario.java | 64 for (U t : m.apply(data.stream()).collect(Collectors.toList())) { in STREAM_COLLECT() 186 for (U u : m.apply(data.parallelStream()).collect(Collectors.toList())) in PAR_STREAM_COLLECT_TO_LIST() 195 for (U u : m.apply(data.stream().parallel()).collect(Collectors.toList())) in STREAM_TO_PAR_STREAM_COLLECT_TO_LIST() 204 for (U u : m.apply(data.parallelStream().sequential()).collect(Collectors.toList())) in PAR_STREAM_TO_STREAM_COLLECT_TO_LIST()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | StreamTestScenario.java | 61 for (U t : m.apply(data.stream()).collect(Collectors.toList())) { in STREAM_COLLECT() 183 for (U u : m.apply(data.parallelStream()).collect(Collectors.toList())) in PAR_STREAM_COLLECT_TO_LIST() 192 for (U u : m.apply(data.stream().parallel()).collect(Collectors.toList())) in STREAM_TO_PAR_STREAM_COLLECT_TO_LIST() 201 for (U u : m.apply(data.parallelStream().sequential()).collect(Collectors.toList())) in PAR_STREAM_TO_STREAM_COLLECT_TO_LIST()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | DoublePipeline.java | 389 double[] summation = collect(() -> new double[3], 431 double[] avg = collect(() -> new double[4], 455 return collect(DoubleSummaryStatistics::new, DoubleSummaryStatistics::accept, 470 public final <R> R collect(Supplier<R> supplier,
|
D | Stream.java | 748 <R> R collect(Supplier<R> supplier, in collect() method 804 <R, A> R collect(Collector<? super T, A, R> collector); in collect() method
|
D | LongPipeline.java | 412 long[] avg = collect(() -> new long[2], 433 return collect(LongSummaryStatistics::new, LongSummaryStatistics::accept, 448 public final <R> R collect(Supplier<R> supplier,
|
D | IntPipeline.java | 435 long[] avg = collect(() -> new long[2], 451 return collect(IntSummaryStatistics::new, IntSummaryStatistics::accept, 466 public final <R> R collect(Supplier<R> supplier,
|
D | ReferencePipeline.java | 110 return Nodes.collect(helper, spliterator, flattenTree, generator); in evaluateToNode() 491 public final <R, A> R collect(Collector<? super P_OUT, A, R> collector) { 509 public final <R> R collect(Supplier<R> supplier,
|
D | DoubleStream.java | 451 <R> R collect(Supplier<R> supplier, in collect() method
|
D | IntStream.java | 445 <R> R collect(Supplier<R> supplier, in collect() method
|
D | LongStream.java | 449 <R> R collect(Supplier<R> supplier, in collect() method
|
/libcore/luni/src/test/java/libcore/util/ |
D | TimeZoneFinderTest.java | 663 .collect(Collectors.toList()); in consistencyTest() 667 .collect(Collectors.toList()); in consistencyTest() 715 return Arrays.stream(ids).map(TimeZone::getTimeZone).collect(Collectors.toList()); in zones()
|