/libcore/ojluni/annotations/flagged_api/java/util/stream/ |
D | Collectors.annotated.java | 33 public static <T, C extends java.util.Collection<T>> java.util.stream.Collector<T,?,C> toCollection… in toCollection() 35 public static <T> java.util.stream.Collector<T,?,java.util.List<T>> toList() { throw new RuntimeExc… in toList() 37 public static <T> java.util.stream.Collector<T,?,java.util.List<T>> toUnmodifiableList() { throw ne… in toUnmodifiableList() 39 public static <T> java.util.stream.Collector<T,?,java.util.Set<T>> toSet() { throw new RuntimeExcep… in toSet() 41 public static <T> java.util.stream.Collector<T,?,java.util.Set<T>> toUnmodifiableSet() { throw new … in toUnmodifiableSet() 43 public static java.util.stream.Collector<java.lang.CharSequence,?,java.lang.String> joining() { thr… in joining() 45 public static java.util.stream.Collector<java.lang.CharSequence,?,java.lang.String> joining(java.la… in joining() 47 public static java.util.stream.Collector<java.lang.CharSequence,?,java.lang.String> joining(java.la… in joining() 49 … R> java.util.stream.Collector<T,?,R> mapping(java.util.function.Function<? super T,? extends U> m… in mapping() 51 …m.Collector<T,?,R> flatMapping(java.util.function.Function<? super T,? extends java.util.stream.St… in flatMapping() [all …]
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | Collectors.java | 108 static final Set<Collector.Characteristics> CH_CONCURRENT_ID 109 = Collections.unmodifiableSet(EnumSet.of(Collector.Characteristics.CONCURRENT, 110 Collector.Characteristics.UNORDERED, 111 Collector.Characteristics.IDENTITY_FINISH)); 112 static final Set<Collector.Characteristics> CH_CONCURRENT_NOID 113 = Collections.unmodifiableSet(EnumSet.of(Collector.Characteristics.CONCURRENT, 114 Collector.Characteristics.UNORDERED)); 115 static final Set<Collector.Characteristics> CH_ID 116 = Collections.unmodifiableSet(EnumSet.of(Collector.Characteristics.IDENTITY_FINISH)); 117 static final Set<Collector.Characteristics> CH_UNORDERED_ID [all …]
|
D | Collector.java | 201 public interface Collector<T, A, R> { interface 264 public static<T, R> Collector<T, R, R> of(Supplier<R> supplier, in of() 274 … : Collections.unmodifiableSet(EnumSet.of(Collector.Characteristics.IDENTITY_FINISH, in of() 295 public static<T, A, R> Collector<T, A, R> of(Supplier<A> supplier, in of()
|
D | ReferencePipeline.java | 696 public final <R, A> R collect(Collector<? super P_OUT, A, R> collector) { 699 && (collector.characteristics().contains(Collector.Characteristics.CONCURRENT)) 700 … && (!isOrdered() || collector.characteristics().contains(Collector.Characteristics.UNORDERED))) { 708 return collector.characteristics().contains(Collector.Characteristics.IDENTITY_FINISH)
|
D | ReduceOps.java | 156 makeRef(Collector<? super T, I, ?> collector) { 185 return collector.characteristics().contains(Collector.Characteristics.UNORDERED)
|
D | Stream.java | 1165 <R, A> R collect(Collector<? super T, A, R> collector);
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | CollectorExample.java | 42 import java.util.stream.Collector; 65 <T, A, R> void testSnippet1(Collector<T, A, R> collector, T t1, T t2) { in testSnippet1() 86 Collector<Widget, ?, TreeSet<Widget>> intoSet = in testSnippet2() 87 Collector.of(TreeSet::new, TreeSet::add, in testSnippet2() 91 <T, A, R> void testSnippet3(Collector<T, A, R> collector, Collection<T> data) { in testSnippet3() 99 Collector<Employee, ?, Integer> summingSalaries in testSnippet4and5() 102 Collector<Employee, ?, Map<Department, Integer>> summingSalariesByDept in testSnippet4and5()
|
D | CollectorsTest.java | 48 import java.util.stream.Collector; 293 private final Collector<T, ?, R1> c1; 294 private final Collector<T, ?, R2> c2; 297 TeeingAssertion(Collector<T, ?, R1> c1, Collector<T, ?, R2> c2, in TeeingAssertion() 326 Collector<T, ?, ? extends M> collector, 329 … boolean ordered = !collector.characteristics().contains(Collector.Characteristics.UNORDERED); 360 Collector<T, ?, R> collector, 400 Collector<Integer, long[], Double> avg2xint = Collector.of(() -> new long[2], 422 …Collector<String, StringBuilder, String> likeJoining = Collector.of(StringBuilder::new, StringBuil… 774 Collector<Integer, ?, Long> summing = Collectors.summingLong(Integer::valueOf); [all …]
|
D | GroupByOpTest.java | 39 import java.util.stream.Collector; 63 Collector<Integer, Map<Boolean, List<Integer>>, Map<Boolean, List<Integer>>> collector in testBypassCollect() 64 …= (Collector<Integer, Map<Boolean, List<Integer>>, Map<Boolean, List<Integer>>>) Collectors.groupi… in testBypassCollect() 134 Collector<Integer, ?, Map<Object, List<Integer>>> tab = Collectors.groupingBy(md.m); in testOps()
|
D | CollectorToUnmodListTest.java | 28 import java.util.stream.Collector;
|
D | TabulatorsTest.java | 47 import java.util.stream.Collector; 247 Collector<T, ?, ? extends M> collector, 250 … boolean ordered = !collector.characteristics().contains(Collector.Characteristics.UNORDERED); 281 Collector<T, ?, R> collector, 321 Collector<Integer, long[], Double> avg2xint = Collector.of(() -> new long[2], 343 …Collector<String, StringBuilder, String> likeJoining = Collector.of(StringBuilder::new, StringBuil…
|
/libcore/luni/src/test/java/libcore/java/util/stream/ |
D | CollectorsTest.java | 36 import java.util.stream.Collector; 75 Collector<Integer, int[], int[]> sqSumCollector = in collectorOf() 76 Collector.of( in collectorOf() 80 Collector.Characteristics.UNORDERED); in collectorOf() 90 assertTrue(sqSumCollector.characteristics().contains(Collector.Characteristics.UNORDERED)); in collectorOf() 97 Collector<Integer, ?, List<Integer>> plusOneCollector = in mapping_asArgumentToCollect() 107 Collector<Integer, ?, List<Integer>> plusOneCollector = in mapping_asArgumentInGroupingBy()
|
/libcore/ojluni/src/test/java/util/Map/ |
D | MapBinToFromTreeTest.java | 34 import java.util.stream.Collector; 86 Collector<Integer, ?, ? extends Collection<Integer>> c = getCollector(m); in testPutThenTraverse() 114 Collector<Integer, ?, ? extends Collection<Integer>> c = getCollector(m); in testRemoveThenTraverse() 150 Collector<Integer, ?, ? extends Collection<Integer>> c = getCollector(m); in testUntreeifyOnResizeWithTraverse() 164 Collector<Integer, ?, ? extends Collection<Integer>> getCollector(Map<?, ?> m) { in getCollector() 165 Collector<Integer, ?, ? extends Collection<Integer>> collector = m instanceof LinkedHashMap in getCollector()
|
/libcore/ojluni/src/main/java/java/util/ |
D | IntSummaryStatistics.java | 28 import java.util.stream.Collector;
|
D | LongSummaryStatistics.java | 29 import java.util.stream.Collector;
|
D | DoubleSummaryStatistics.java | 28 import java.util.stream.Collector;
|
/libcore/ojluni/src/test/java/util/stream/Collectors/ |
D | CollectorsTest.java | 46 import java.util.stream.Collector; 308 Collector<T, ?, ? extends M> collector, 311 … boolean ordered = !collector.characteristics().contains(Collector.Characteristics.UNORDERED); 342 Collector<T, ?, R> collector, 382 Collector<Integer, long[], Double> avg2xint = Collector.of(() -> new long[2], 404 …Collector<String, StringBuilder, String> likeJoining = Collector.of(StringBuilder::new, StringBuil…
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodHandle.java | 1237 return new Transformers.Collector(this, arrayType, collectArgPos, arrayLength); in asCollector()
|
D | Transformers.java | 1406 static class Collector extends Transformer { class in Transformers 1433 Collector(MethodHandle delegate, Class<?> arrayType, int start, int length) { in Collector() method in Transformers.Collector
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | DefaultMethodStreams.java | 302 public <R, A> R collect(Collector<? super T, A, R> collector) { in collect()
|
/libcore/api/ |
D | current.txt | 18175 public interface Collector<T, A, R> { 18177 method public java.util.Set<java.util.stream.Collector.Characteristics> characteristics(); 18180 …Collector<T,R,R> of(java.util.function.Supplier<R>, java.util.function.BiConsumer<R,T>, java.util.… 18181 …Collector<T,A,R> of(java.util.function.Supplier<A>, java.util.function.BiConsumer<A,T>, java.util.… 18185 public enum Collector.Characteristics { 18186 enum_constant public static final java.util.stream.Collector.Characteristics CONCURRENT; 18187 enum_constant public static final java.util.stream.Collector.Characteristics IDENTITY_FINISH; 18188 enum_constant public static final java.util.stream.Collector.Characteristics UNORDERED; 18192 …method public static <T> java.util.stream.Collector<T,?,java.lang.Double> averagingDouble(java.uti… 18193 …method public static <T> java.util.stream.Collector<T,?,java.lang.Double> averagingInt(java.util.f… [all …]
|
/libcore/ |
D | openjdk_java_files.bp | 1120 "ojluni/src/main/java/java/util/stream/Collector.java",
|
D | EXPECTED_UPSTREAM | 1215 …src/main/java/java/util/stream/Collector.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/jav…
|