Home
last modified time | relevance | path

Searched refs:accumulator (Results 1 – 12 of 12) sorted by relevance

/libcore/ojluni/src/main/java/java/util/stream/
DCollector.java210 BiConsumer<A, T> accumulator(); in accumulator() method
261 BiConsumer<R, T> accumulator, in of() argument
265 Objects.requireNonNull(accumulator); in of()
272 return new Collectors.CollectorImpl<>(supplier, accumulator, combiner, cs); in of()
292 BiConsumer<A, T> accumulator, in of() argument
297 Objects.requireNonNull(accumulator); in of()
307 return new Collectors.CollectorImpl<>(supplier, accumulator, combiner, finisher, cs); in of()
DCollectors.java149 private final BiConsumer<A, T> accumulator; field in CollectorImpl
155 BiConsumer<A, T> accumulator, in CollectorImpl() argument
160 this.accumulator = accumulator; in CollectorImpl()
167 BiConsumer<A, T> accumulator, in CollectorImpl() argument
170 this(supplier, accumulator, combiner, castingIdentity(), characteristics); in CollectorImpl()
174 public BiConsumer<A, T> accumulator() { in accumulator() method in CollectorImpl
175 return accumulator; in accumulator()
353 BiConsumer<A, ? super U> downstreamAccumulator = downstream.accumulator();
391 downstream.accumulator(),
905 BiConsumer<A, ? super T> downstreamAccumulator = downstream.accumulator();
[all …]
DReduceOps.java158 BiConsumer<I, ? super T> accumulator = collector.accumulator();
169 accumulator.accept(state, t);
206 BiConsumer<R, ? super T> accumulator,
209 Objects.requireNonNull(accumulator);
220 accumulator.accept(state, t);
342 ObjIntConsumer<R> accumulator,
345 Objects.requireNonNull(accumulator);
356 accumulator.accept(state, t);
478 ObjLongConsumer<R> accumulator,
481 Objects.requireNonNull(accumulator);
[all …]
DReferencePipeline.java491 public final P_OUT reduce(final P_OUT identity, final BinaryOperator<P_OUT> accumulator) {
492 return evaluate(ReduceOps.makeRef(identity, accumulator, accumulator));
496 public final Optional<P_OUT> reduce(BinaryOperator<P_OUT> accumulator) {
497 return evaluate(ReduceOps.makeRef(accumulator));
501 …public final <R> R reduce(R identity, BiFunction<R, ? super P_OUT, R> accumulator, BinaryOperator<…
502 return evaluate(ReduceOps.makeRef(identity, accumulator, combiner));
513 BiConsumer<A, ? super P_OUT> accumulator = collector.accumulator();
514 forEach(u -> accumulator.accept(container, u));
526 BiConsumer<R, ? super P_OUT> accumulator,
528 return evaluate(ReduceOps.makeRef(supplier, accumulator, combiner));
DStream.java607 T reduce(T identity, BinaryOperator<T> accumulator); in reduce() argument
647 Optional<T> reduce(BinaryOperator<T> accumulator); in reduce() argument
697 BiFunction<U, ? super T, U> accumulator, in reduce() argument
752 BiConsumer<R, ? super T> accumulator, in collect() argument
DDoubleStream.java454 ObjDoubleConsumer<R> accumulator, in collect() argument
DIntStream.java446 ObjIntConsumer<R> accumulator, in collect() argument
DDoublePipeline.java486 ObjDoubleConsumer<R> accumulator,
492 return evaluate(ReduceOps.makeDouble(supplier, accumulator, operator));
DIntPipeline.java483 ObjIntConsumer<R> accumulator,
489 return evaluate(ReduceOps.makeInt(supplier, accumulator, operator));
DLongPipeline.java465 ObjLongConsumer<R> accumulator,
471 return evaluate(ReduceOps.makeLong(supplier, accumulator, operator));
DLongStream.java451 ObjLongConsumer<R> accumulator, in collect() argument
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DGroupByOpTest.java69 collector.accumulator().accept(m, i); in testBypassCollect()