Home
last modified time | relevance | path

Searched refs:Collectors (Results 1 – 25 of 26) sorted by relevance

12

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/
DFillableStringTest.java27 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/
DSummaryStatisticsTest.java32 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()
DTabulatorsTest.java48 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 …]
DGroupByOpTest.java40 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()
DReduceByOpTest.java38 import static java.util.stream.Collectors.groupingBy;
39 import static java.util.stream.Collectors.reducing;
DStreamLinkTest.java34 import java.util.stream.Collectors;
64 … List<Integer> expected = data.stream().map(e -> (Integer) (e + n)).collect(Collectors.toList());
DIntPrimitiveOpsTests.java33 import java.util.stream.Collectors;
78 List<Integer> l = IntStream.range(1, 10).parallel().boxed().collect(Collectors.toList()); in testBox()
DLongPrimitiveOpsTests.java33 import java.util.stream.Collectors;
78 List<Long> l = LongStream.range(1, 10).parallel().boxed().collect(Collectors.toList()); in testBox()
DDistinctOpTest.java41 import java.util.stream.Collectors;
181 .collect(Collectors.toList()); in testStable()
DSliceOpTest.java36 import java.util.stream.Collectors;
233 List<Integer> list = IntStream.range(0, 100).boxed().collect(Collectors.toList()); in testSkipLimitOpsWithNonSplittingSpliterator()
DStreamBuilderTest.java42 import static java.util.stream.Collectors.toList;
/libcore/ojluni/src/main/java/java/util/stream/
DCollector.java269 ? 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()
DDoublePipeline.java406 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])
DCollectors.java104 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/
DTestDoubleSumAverage.java92 … 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/
DSpinedBufferTest.java49 .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()
DSliceSpliteratorTest.java34 import static java.util.stream.Collectors.toList;
DStreamOpFlagsTest.java39 import static java.util.stream.Collectors.toList;
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DStreamTestScenario.java61 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/
DStreamTestScenario.java64 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/
DParameterizedTypeRegressionTest.java30 import java.util.stream.Collectors;
260 .collect(Collectors.toList()); in toString()
/libcore/luni/src/test/java/libcore/java/util/
DArraysTest.java29 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()
DLocaleLanguageRangeTest.java28 import java.util.stream.Collectors;
434 return languageRanges.stream().map(LanguageRange::getRange).collect(Collectors.toList()); in rangesToStrings()
DLocaleTest.java44 import java.util.stream.Collectors;
246 .collect(Collectors.toSet()); in testGetAvailableLocales_icuConsistency()
/libcore/jsr166-tests/src/test/java/jsr166/
DCompletableFutureTest.java18 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()

12