Searched defs:collect (Results 1 - 9 of 9) sorted by relevance

/libcore/ojluni/src/main/java/java/util/stream/
H A DDoubleStream.java428 * <p>Like {@link #reduce(double, DoubleBinaryOperator)}, {@code collect}
449 * @see Stream#collect(Supplier, BiConsumer, BiConsumer)
451 <R> R collect(Supplier<R> supplier, method in interface:DoubleStream
H A DStream.java412 * .collect(Collectors.toList());
711 * <p>Like {@link #reduce(Object, BinaryOperator)}, {@code collect} operations
718 * well-suited for use with method references as arguments to {@code collect()}.
721 * List<String> asList = stringStream.collect(ArrayList::new, ArrayList::add,
728 * String concat = stringStream.collect(StringBuilder::new, StringBuilder::append,
748 <R> R collect(Supplier<R> supplier, method in interface:Stream
757 * {@link #collect(Supplier, BiConsumer, BiConsumer)}, allowing for reuse of
758 * collection strategies and composition of collect operations such as
780 * List<String> asList = stringStream.collect(Collectors.toList());
786 * = personStream.collect(Collector
804 <R, A> R collect(Collector<? super T, A, R> collector); method in interface:Stream
[all...]
H A DDoublePipeline.java382 * In the arrays allocated for the collect operation, index 0
389 double[] summation = collect(() -> new double[3],
425 * In the arrays allocated for the collect operation, index 0
431 double[] avg = collect(() -> new double[4],
455 return collect(DoubleSummaryStatistics::new, DoubleSummaryStatistics::accept,
470 public final <R> R collect(Supplier<R> supplier, method in class:DoublePipeline
H A DIntPipeline.java435 long[] avg = collect(() -> new long[2],
451 return collect(IntSummaryStatistics::new, IntSummaryStatistics::accept,
466 public final <R> R collect(Supplier<R> supplier, method in class:IntPipeline
H A DIntStream.java423 * <p>Like {@link #reduce(int, IntBinaryOperator)}, {@code collect} operations
443 * @see Stream#collect(Supplier, BiConsumer, BiConsumer)
445 <R> R collect(Supplier<R> supplier, method in interface:IntStream
H A DLongPipeline.java412 long[] avg = collect(() -> new long[2],
433 return collect(LongSummaryStatistics::new, LongSummaryStatistics::accept,
448 public final <R> R collect(Supplier<R> supplier, method in class:LongPipeline
H A DLongStream.java427 * <p>Like {@link #reduce(long, LongBinaryOperator)}, {@code collect} operations
447 * @see Stream#collect(Supplier, BiConsumer, BiConsumer)
449 <R> R collect(Supplier<R> supplier, method in interface:LongStream
H A DReferencePipeline.java110 return Nodes.collect(helper, spliterator, flattenTree, generator);
490 public final <R, A> R collect(Collector<? super P_OUT, A, R> collector) { method in class:ReferencePipeline
508 public final <R> R collect(Supplier<R> supplier, method in class:ReferencePipeline
H A DNodes.java316 public static <P_IN, P_OUT> Node<P_OUT> collect(PipelineHelper<P_OUT> helper, method in class:Nodes

Completed in 83 milliseconds