Home
last modified time | relevance | path

Searched refs:groupingBy (Results 1 – 10 of 10) sorted by relevance

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DReduceByOpTest.java38 import static java.util.stream.Collectors.groupingBy;
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()
DCollectorsTest.java62 import static java.util.stream.Collectors.groupingBy;
530 exerciseMapCollection(data, groupingBy(classifier),
539 groupingBy(classifier, TreeMap::new, toCollection(HashSet::new)),
555 groupingBy(classifier, mapping(mapper, toList())),
566 …Map<Integer, List<Integer>> m = Stream.of(1, 2).collect(groupingBy(classifier, flatMapping(flatMap…
578 groupingBy(classifier, flatMapping(flatMapperByNull, toList())),
583 groupingBy(classifier, flatMapping(flatMapperBy0, toList())),
588 groupingBy(classifier, flatMapping(flatMapperBy2, toList())),
603 groupingBy(classifier, filtering(filteringByMod2, toList())),
608 groupingBy(classifier, filtering(filteringByUnder100, toList())),
[all …]
DTabulatorsTest.java54 import static java.util.stream.Collectors.groupingBy;
451 exerciseMapTabulation(data, groupingBy(classifier),
460 groupingBy(classifier, TreeMap::new, toCollection(HashSet::new)),
477 groupingBy(classifier, groupingBy(classifier2)),
483 groupingByConcurrent(classifier, groupingBy(classifier2)),
489 groupingBy(classifier, groupingByConcurrent(classifier2)),
502groupingBy(classifier, TreeMap::new, groupingBy(classifier2, TreeMap::new, toCollection(HashSet::n…
508 …groupingByConcurrent(classifier, ConcurrentSkipListMap::new, groupingBy(classifier2, TreeMap::new,…
514groupingBy(classifier, TreeMap::new, groupingByConcurrent(classifier2, ConcurrentSkipListMap::new,…
532 groupingBy(classifier, reducing(0, Integer::sum)),
[all …]
DGroupByOpTest.java64 … Map<Boolean, List<Integer>>, Map<Boolean, List<Integer>>>) Collectors.groupingBy(LambdaTestHelper… 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()
DCollectorExample.java103 = Collectors.groupingBy(Employee::getDepartment, summingSalaries); in testSnippet4and5()
/libcore/ojluni/src/test/java/util/stream/Collectors/
DCollectorsTest.java60 import static java.util.stream.Collectors.groupingBy;
512 exerciseMapCollection(data, groupingBy(classifier),
521 groupingBy(classifier, TreeMap::new, toCollection(HashSet::new)),
537 groupingBy(classifier, mapping(mapper, toList())),
548 …Map<Integer, List<Integer>> m = Stream.of(1, 2).collect(groupingBy(classifier, flatMapping(flatMap…
560 groupingBy(classifier, flatMapping(flatMapperByNull, toList())),
565 groupingBy(classifier, flatMapping(flatMapperBy0, toList())),
570 groupingBy(classifier, flatMapping(flatMapperBy2, toList())),
585 groupingBy(classifier, filtering(filteringByMod2, toList())),
590 groupingBy(classifier, filtering(filteringByUnder100, toList())),
[all …]
/libcore/luni/src/test/java/libcore/java/util/stream/
DCollectorsTest.java25 import static java.util.stream.Collectors.groupingBy;
111 .collect(groupingBy(x -> x % 2 == 0, plusOneCollector)); in mapping_asArgumentInGroupingBy()
/libcore/ojluni/annotations/flagged_api/java/util/stream/
DCollectors.annotated.java81 public static <T, K> java.util.stream.Collector<T,?,java.util.Map<K,java.util.List<T>>> groupingBy(… in groupingBy() method in Collectors
83 public static <T, K, A, D> java.util.stream.Collector<T,?,java.util.Map<K,D>> groupingBy(java.util.… in groupingBy() method in Collectors
85 …D, A, M extends java.util.Map<K, D>> java.util.stream.Collector<T,?,M> groupingBy(java.util.functi… in groupingBy() method in Collectors
/libcore/ojluni/src/main/java/java/util/stream/
DCollectors.java1035 groupingBy(Function<? super T, ? extends K> classifier) {
1036 return groupingBy(classifier, toList());
1084 Collector<T, ?, Map<K, D>> groupingBy(Function<? super T, ? extends K> classifier,
1086 return groupingBy(classifier, HashMap::new, downstream);
1137 Collector<T, ?, M> groupingBy(Function<? super T, ? extends K> classifier,
/libcore/api/
Dcurrent.txt18199 … K> java.util.stream.Collector<T,?,java.util.Map<K,java.util.List<T>>> groupingBy(java.util.functi…
18200 …method public static <T, K, A, D> java.util.stream.Collector<T,?,java.util.Map<K,D>> groupingBy(ja…
18201 …D, A, M extends java.util.Map<K, D>> java.util.stream.Collector<T,?,M> groupingBy(java.util.functi…