/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/ |
D | FillableStringTest.java | 27 import java.util.stream.Collectors; 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/test/org/openjdk/tests/java/util/stream/ |
D | SummaryStatisticsTest.java | 32 import java.util.stream.Collectors; 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 | TabulatorsTest.java | 48 import java.util.stream.Collectors; 53 import static java.util.stream.Collectors.collectingAndThen; 54 import static java.util.stream.Collectors.groupingBy; 55 import static java.util.stream.Collectors.groupingByConcurrent; 56 import static java.util.stream.Collectors.partitioningBy; 57 import static java.util.stream.Collectors.reducing; 58 import static java.util.stream.Collectors.toCollection; 59 import static java.util.stream.Collectors.toConcurrentMap; 60 import static java.util.stream.Collectors.toList; 61 import static java.util.stream.Collectors.toMap; [all …]
|
D | GroupByOpTest.java | 40 import java.util.stream.Collectors; 64 …or<Integer, Map<Boolean, List<Integer>>, Map<Boolean, List<Integer>>>) Collectors.groupingBy(Lambd… in testBypassCollect() 85 …Map<Boolean,List<Integer>> result = countTo(10).stream().collect(Collectors.groupingBy(LambdaTestH… in testGroupBy() 134 Collector<Integer, ?, Map<Object, List<Integer>>> tab = Collectors.groupingBy(md.m); in testOps()
|
D | ReduceByOpTest.java | 38 import static java.util.stream.Collectors.groupingBy; 39 import static java.util.stream.Collectors.reducing;
|
D | StreamLinkTest.java | 34 import java.util.stream.Collectors; 64 … List<Integer> expected = data.stream().map(e -> (Integer) (e + n)).collect(Collectors.toList());
|
D | IntPrimitiveOpsTests.java | 33 import java.util.stream.Collectors; 78 List<Integer> l = IntStream.range(1, 10).parallel().boxed().collect(Collectors.toList()); in testBox()
|
D | LongPrimitiveOpsTests.java | 33 import java.util.stream.Collectors; 78 List<Long> l = LongStream.range(1, 10).parallel().boxed().collect(Collectors.toList()); in testBox()
|
D | DistinctOpTest.java | 41 import java.util.stream.Collectors; 181 .collect(Collectors.toList()); in testStable()
|
D | SliceOpTest.java | 36 import java.util.stream.Collectors; 233 List<Integer> list = IntStream.range(0, 100).boxed().collect(Collectors.toList()); in testSkipLimitOpsWithNonSplittingSpliterator()
|
D | StreamBuilderTest.java | 42 import static java.util.stream.Collectors.toList;
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | Collector.java | 269 ? Collectors.CH_ID in of() 272 return new Collectors.CollectorImpl<>(supplier, accumulator, combiner, cs); in of() 301 Set<Characteristics> cs = Collectors.CH_NOID; in of() 307 return new Collectors.CollectorImpl<>(supplier, accumulator, combiner, finisher, cs); in of()
|
D | DoublePipeline.java | 406 Collectors.sumWithCompensation(ll, d); 410 Collectors.sumWithCompensation(ll, rr[0]); 411 Collectors.sumWithCompensation(ll, rr[1]); 415 return Collectors.computeFinalSum(summation); 449 Collectors.sumWithCompensation(ll, d); 453 Collectors.sumWithCompensation(ll, rr[0]); 454 Collectors.sumWithCompensation(ll, rr[1]); 459 ? OptionalDouble.of(Collectors.computeFinalSum(avg) / avg[2])
|
D | Collectors.java | 104 public final class Collectors { class 120 private Collectors() { } in Collectors() method in Collectors 383 characteristics = Collectors.CH_NOID; 911 … BinaryOperator<Map<K, A>> merger = Collectors.<K, A, Map<K, A>>mapMerger(downstream.combiner()); 1057 …BinaryOperator<ConcurrentMap<K, A>> merger = Collectors.<K, A, ConcurrentMap<K, A>>mapMerger(downs…
|
/libcore/ojluni/src/test/java/util/stream/ |
D | TestDoubleSumAverage.java | 92 … ds.get().boxed().collect(Collectors.summingDouble(d -> d)), 3); in testForCompenstation() 94 … ds.get().boxed().collect(Collectors.averagingDouble(d -> d)),3); in testForCompenstation() 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/boottest/java/util/stream/ |
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 | SliceSpliteratorTest.java | 34 import static java.util.stream.Collectors.toList;
|
D | StreamOpFlagsTest.java | 39 import static java.util.stream.Collectors.toList;
|
/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/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/luni/src/test/java/libcore/libcore/reflect/ |
D | ParameterizedTypeRegressionTest.java | 30 import java.util.stream.Collectors; 260 .collect(Collectors.toList()); in toString()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ArraysTest.java | 29 import java.util.stream.Collectors; 597 .collect(Collectors.toList()); in streamInt() 684 .collect(Collectors.toList()); in streamLong() 771 .collect(Collectors.toList()); in streamDouble() 857 .collect(Collectors.toList()); in streamObject()
|
D | LocaleLanguageRangeTest.java | 28 import java.util.stream.Collectors; 434 return languageRanges.stream().map(LanguageRange::getRange).collect(Collectors.toList()); in rangesToStrings()
|
D | LocaleTest.java | 44 import java.util.stream.Collectors; 246 .collect(Collectors.toSet()); in testGetAvailableLocales_icuConsistency()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | CompletableFutureTest.java | 18 import java.util.stream.Collectors; 3738 .collect(Collectors.toList()); in testMinimalCompletionStage_minimality() 3749 .collect(Collectors.toSet()); in testMinimalCompletionStage_minimality() 3753 .collect(Collectors.toList()); in testMinimalCompletionStage_minimality()
|