Searched refs:accumulator (Results 1 - 25 of 25) sorted by relevance

/openjdk10/jdk/src/java.desktop/share/classes/javax/swing/text/rtf/
H A DAbstractFilter.java163 StringBuilder accumulator = null;
172 if (accumulator != null) {
173 write(accumulator.toString());
174 accumulator = null;
180 if (accumulator == null)
181 accumulator = new StringBuilder();
182 accumulator.append(ch);
190 if (accumulator != null)
191 write(accumulator.toString());
/openjdk10/jdk/src/java.base/share/classes/java/util/stream/
H A DCollector.java54 * <li>incorporating a new data element into a result container ({@link #accumulator()})</li>
65 * accumulator function once for each input element. A parallel implementation
78 * result of any series of accumulator and combiner invocations, {@code a} must
87 * accumulator.accept(a1, t1);
88 * accumulator.accept(a1, t2);
92 * accumulator.accept(a2, t1);
94 * accumulator.accept(a3, t2);
109 * <li>The first argument passed to the accumulator function, both
112 * result supplier, accumulator, or combiner functions.</li>
114 * the result supplier, accumulator, o
210 BiConsumer<A, T> accumulator(); method in interface:Collector
260 of(Supplier<R> supplier, BiConsumer<R, T> accumulator, BinaryOperator<R> combiner, Characteristics... characteristics) argument
291 of(Supplier<A> supplier, BiConsumer<A, T> accumulator, BinaryOperator<A> combiner, Function<A, R> finisher, Characteristics... characteristics) argument
[all...]
H A DCollectors.java195 private final BiConsumer<A, T> accumulator; field in class:Collectors.CollectorImpl
201 BiConsumer<A, T> accumulator,
206 this.accumulator = accumulator;
213 BiConsumer<A, T> accumulator,
216 this(supplier, accumulator, combiner, castingIdentity(), characteristics);
220 public BiConsumer<A, T> accumulator() { method in class:Collectors.CollectorImpl
221 return accumulator;
407 BiConsumer<A, ? super U> downstreamAccumulator = downstream.accumulator();
452 BiConsumer<A, ? super U> downstreamAccumulator = downstream.accumulator();
200 CollectorImpl(Supplier<A> supplier, BiConsumer<A, T> accumulator, BinaryOperator<A> combiner, Function<A,R> finisher, Set<Characteristics> characteristics) argument
212 CollectorImpl(Supplier<A> supplier, BiConsumer<A, T> accumulator, BinaryOperator<A> combiner, Set<Characteristics> characteristics) argument
[all...]
H A DReferencePipeline.java485 public final P_OUT reduce(final P_OUT identity, final BinaryOperator<P_OUT> accumulator) { argument
486 return evaluate(ReduceOps.makeRef(identity, accumulator, accumulator));
490 public final Optional<P_OUT> reduce(BinaryOperator<P_OUT> accumulator) { argument
491 return evaluate(ReduceOps.makeRef(accumulator));
495 public final <R> R reduce(R identity, BiFunction<R, ? super P_OUT, R> accumulator, BinaryOperator<R> combiner) { argument
496 return evaluate(ReduceOps.makeRef(identity, accumulator, combiner));
507 BiConsumer<A, ? super P_OUT> accumulator = collector.accumulator();
508 forEach(u -> accumulator
519 collect(Supplier<R> supplier, BiConsumer<R, ? super P_OUT> accumulator, BiConsumer<R, R> combiner) argument
[all...]
H A DReduceOps.java158 BiConsumer<I, ? super T> accumulator = collector.accumulator();
169 accumulator.accept(state, t);
198 * @param seedFactory a factory to produce a new base accumulator
199 * @param accumulator a function to incorporate an element into an
200 * accumulator
201 * @param reducer a function to combine an accumulator into another
206 BiConsumer<R, ? super T> accumulator,
209 Objects.requireNonNull(accumulator);
220 accumulator
205 makeRef(Supplier<R> seedFactory, BiConsumer<R, ? super T> accumulator, BiConsumer<R,R> reducer) argument
380 makeInt(Supplier<R> supplier, ObjIntConsumer<R> accumulator, BinaryOperator<R> combiner) argument
554 makeLong(Supplier<R> supplier, ObjLongConsumer<R> accumulator, BinaryOperator<R> combiner) argument
728 makeDouble(Supplier<R> supplier, ObjDoubleConsumer<R> accumulator, BinaryOperator<R> combiner) argument
[all...]
H A DStream.java716 * result = accumulator.apply(result, element)
722 * <p>The {@code identity} value must be an identity for the accumulator
724 * {@code accumulator.apply(identity, t)} is equal to {@code t}.
725 * The {@code accumulator} function must be an
750 * @param accumulator an <a href="package-summary.html#Associativity">associative</a>,
756 T reduce(T identity, BinaryOperator<T> accumulator); argument
773 * result = accumulator.apply(result, element);
780 * <p>The {@code accumulator} function must be an
786 * @param accumulator an <a href="package-summary.html#Associativity">associative</a>,
796 Optional<T> reduce(BinaryOperator<T> accumulator); argument
845 reduce(U identity, BiFunction<U, ? super T, U> accumulator, BinaryOperator<U> combiner) argument
904 collect(Supplier<R> supplier, BiConsumer<R, ? super T> accumulator, BiConsumer<R, R> combiner) argument
[all...]
H A DLongStream.java464 * result = accumulator.applyAsLong(result, element)
470 * <p>The {@code identity} value must be an identity for the accumulator
472 * {@code accumulator.apply(identity, x)} is equal to {@code x}.
473 * The {@code accumulator} function must be an
525 * result = accumulator.applyAsLong(result, element);
532 * <p>The {@code accumulator} function must be an
557 * accumulator.accept(result, element);
571 * @param accumulator an <a href="package-summary.html#Associativity">associative</a>,
581 * accumulator function. The combiner function must fold
588 ObjLongConsumer<R> accumulator,
587 collect(Supplier<R> supplier, ObjLongConsumer<R> accumulator, BiConsumer<R, R> combiner) argument
[all...]
H A DDoubleStream.java466 * result = accumulator.applyAsDouble(result, element)
472 * <p>The {@code identity} value must be an identity for the accumulator
474 * {@code accumulator.apply(identity, x)} is equal to {@code x}.
475 * The {@code accumulator} function must be an
527 * result = accumulator.applyAsDouble(result, element);
534 * <p>The {@code accumulator} function must be an
559 * accumulator.accept(result, element);
574 * @param accumulator an <a href="package-summary.html#Associativity">associative</a>,
584 * accumulator function. The combiner function must fold
591 ObjDoubleConsumer<R> accumulator,
590 collect(Supplier<R> supplier, ObjDoubleConsumer<R> accumulator, BiConsumer<R, R> combiner) argument
[all...]
H A DIntStream.java462 * result = accumulator.applyAsInt(result, element)
468 * <p>The {@code identity} value must be an identity for the accumulator
470 * {@code accumulator.apply(identity, x)} is equal to {@code x}.
471 * The {@code accumulator} function must be an
523 * result = accumulator.applyAsInt(result, element);
530 * <p>The {@code accumulator} function must be an
555 * accumulator.accept(result, element);
569 * @param accumulator an <a href="package-summary.html#Associativity">associative</a>,
579 * accumulator function. The combiner function must fold
586 ObjIntConsumer<R> accumulator,
585 collect(Supplier<R> supplier, ObjIntConsumer<R> accumulator, BiConsumer<R, R> combiner) argument
[all...]
H A DDoublePipeline.java486 ObjDoubleConsumer<R> accumulator,
493 return evaluate(ReduceOps.makeDouble(supplier, accumulator, operator));
485 collect(Supplier<R> supplier, ObjDoubleConsumer<R> accumulator, BiConsumer<R, R> combiner) argument
H A DIntPipeline.java479 ObjIntConsumer<R> accumulator,
486 return evaluate(ReduceOps.makeInt(supplier, accumulator, operator));
478 collect(Supplier<R> supplier, ObjIntConsumer<R> accumulator, BiConsumer<R, R> combiner) argument
H A DLongPipeline.java462 ObjLongConsumer<R> accumulator,
469 return evaluate(ReduceOps.makeLong(supplier, accumulator, operator));
461 collect(Supplier<R> supplier, ObjLongConsumer<R> accumulator, BiConsumer<R, R> combiner) argument
/openjdk10/hotspot/src/share/vm/runtime/
H A DtimerTrace.cpp42 elapsedTimer* accumulator,
51 _accum = accumulator;
41 TraceTime(const char* title, elapsedTimer* accumulator, bool doit, bool verbose) argument
H A DtimerTrace.hpp51 elapsedTimer* _accum; // accumulator
61 elapsedTimer* accumulator,
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/doubleconv/
H A DFixedDtoa.java77 long accumulator;
79 accumulator = (low_bits_ & kMask32) * multiplicand;
80 long part = accumulator & kMask32;
81 accumulator >>>= 32;
82 accumulator = accumulator + (low_bits_ >>> 32) * multiplicand;
83 low_bits_ = (accumulator << 32) + part;
84 accumulator >>>= 32;
85 accumulator = accumulator
[all...]
H A DBignum.java436 long accumulator = 0;
452 accumulator += ((long) int1) * int2;
456 bigits_[i] = (int) (accumulator & kBigitMask);
457 accumulator >>>= kBigitSize;
463 // Inner loop runs 0 times on last iteration, emptying accumulator.
467 accumulator += ((long) int1) * int2;
474 bigits_[i] = (int) (accumulator & kBigitMask);
475 accumulator >>>= kBigitSize;
478 // accumulator must be 0 now.
479 assert (accumulator
[all...]
/openjdk10/jdk/test/java/lang/management/ThreadMXBean/
H A DThreadBlockedCount.java95 int accumulator = 0;
105 accumulator++; // filler
117 accumulator++; // filler
129 accumulator++; // filler
134 System.out.println("Acquired " + accumulator + " monitors");
/openjdk10/langtools/test/tools/javac/lambda/
H A DTargetType59.java37 <T, R> Collector<T, String, R> m(Supplier<? extends R> supplier, BiConsumer<R, T> accumulator) { argument
/openjdk10/jdk/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/websocket/
H A DFrame.java365 private final ByteBuffer accumulator = ByteBuffer.allocate(8); field in class:Frame.Reader
418 if (accumulator.put(b).position() < 2) {
421 remainingPayloadLength = accumulator.flip().getChar();
426 accumulator.clear();
434 if (accumulator.put(b).position() < 8) {
437 remainingPayloadLength = accumulator.flip().getLong();
444 accumulator.clear();
452 if (accumulator.put(b).position() != 4) {
455 consumer.maskingKey(accumulator.flip().getInt());
456 accumulator
[all...]
/openjdk10/jdk/test/lib/testlibrary/bootlib/java.base/java/util/stream/
H A DDefaultMethodStreams.java280 public T reduce(T identity, BinaryOperator<T> accumulator) { argument
281 return s.reduce(identity, accumulator);
285 public Optional<T> reduce(BinaryOperator<T> accumulator) { argument
286 return s.reduce(accumulator);
290 public <U> U reduce(U identity, BiFunction<U, ? super T, U> accumulator, BinaryOperator<U> combiner) { argument
291 return s.reduce(identity, accumulator, combiner);
295 public <R> R collect(Supplier<R> supplier, BiConsumer<R, ? super T> accumulator, BiConsumer<R, R> combiner) { argument
296 return s.collect(supplier, accumulator, combiner);
476 public <R> R collect(Supplier<R> supplier, ObjIntConsumer<R> accumulator, BiConsumer<R, R> combiner) { argument
477 return s.collect(supplier, accumulator, combine
682 collect(Supplier<R> supplier, ObjLongConsumer<R> accumulator, BiConsumer<R, R> combiner) argument
880 collect(Supplier<R> supplier, ObjDoubleConsumer<R> accumulator, BiConsumer<R, R> combiner) argument
[all...]
/openjdk10/langtools/test/tools/javac/lambda/8016177/
H A DT8016177f.java64 <R> R collect(Supplier<R> resultFactory, BiConsumer<R, ? super T> accumulator, BiConsumer<R, R> combiner); argument
/openjdk10/jdk/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DGroupByOpTest.java68 collector.accumulator().accept(m, i);
/openjdk10/hotspot/src/share/vm/opto/
H A Dcompile.hpp175 TracePhase(const char* name, elapsedTimer* accumulator);
H A Dcompile.cpp3783 Compile::TracePhase::TracePhase(const char* name, elapsedTimer* accumulator) argument
3784 : TraceTime(name, accumulator, CITime, CITimeVerbose),
/openjdk10/langtools/src/jdk.jshell/share/classes/jdk/internal/jshell/tool/
H A DFeedback.java847 public BiConsumer<StringJoiner, CharSequence> accumulator() {

Completed in 280 milliseconds