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.java475 public final P_OUT reduce(final P_OUT identity, final BinaryOperator<P_OUT> accumulator) {
476 return evaluate(ReduceOps.makeRef(identity, accumulator, accumulator));
480 public final Optional<P_OUT> reduce(BinaryOperator<P_OUT> accumulator) {
481 return evaluate(ReduceOps.makeRef(accumulator));
485 …public final <R> R reduce(R identity, BiFunction<R, ? super P_OUT, R> accumulator, BinaryOperator<…
486 return evaluate(ReduceOps.makeRef(identity, accumulator, combiner));
497 BiConsumer<A, ? super P_OUT> accumulator = collector.accumulator();
498 forEach(u -> accumulator.accept(container, u));
510 BiConsumer<R, ? super P_OUT> accumulator,
512 return evaluate(ReduceOps.makeRef(supplier, accumulator, combiner));
DStream.java604 T reduce(T identity, BinaryOperator<T> accumulator); in reduce() argument
644 Optional<T> reduce(BinaryOperator<T> accumulator); in reduce() argument
694 BiFunction<U, ? super T, U> accumulator, in reduce() argument
749 BiConsumer<R, ? super T> accumulator, in collect() argument
DDoubleStream.java452 ObjDoubleConsumer<R> accumulator, in collect() argument
DIntStream.java446 ObjIntConsumer<R> accumulator, in collect() argument
DDoublePipeline.java471 ObjDoubleConsumer<R> accumulator,
477 return evaluate(ReduceOps.makeDouble(supplier, accumulator, operator));
DLongPipeline.java449 ObjLongConsumer<R> accumulator,
455 return evaluate(ReduceOps.makeLong(supplier, accumulator, operator));
DIntPipeline.java467 ObjIntConsumer<R> accumulator,
473 return evaluate(ReduceOps.makeInt(supplier, accumulator, operator));
DLongStream.java450 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()