Home
last modified time | relevance | path

Searched refs:reducer (Results 1 – 3 of 3) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentHashMap.java3785 BiFunction<? super U, ? super U, ? extends U> reducer) { in reduce() argument
3786 if (transformer == null || reducer == null) in reduce()
3790 null, transformer, reducer).invoke(); in reduce()
3811 DoubleBinaryOperator reducer) { in reduceToDouble() argument
3812 if (transformer == null || reducer == null) in reduceToDouble()
3816 null, transformer, basis, reducer).invoke(); in reduceToDouble()
3837 LongBinaryOperator reducer) { in reduceToLong() argument
3838 if (transformer == null || reducer == null) in reduceToLong()
3842 null, transformer, basis, reducer).invoke(); in reduceToLong()
3863 IntBinaryOperator reducer) { in reduceToInt() argument
[all …]
/libcore/ojluni/src/main/java/java/util/stream/
DReduceOps.java69 makeRef(U seed, BiFunction<U, ? super T, U> reducer, BinaryOperator<U> combiner) { in makeRef() argument
70 Objects.requireNonNull(reducer); in makeRef()
80 state = reducer.apply(state, t); in makeRef()
207 BiConsumer<R,R> reducer) {
210 Objects.requireNonNull(reducer);
225 reducer.accept(state, other.state);
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DTabulatorsTest.java211 private final BinaryOperator<U> reducer; field in TabulatorsTest.ReduceAssertion
213 ReduceAssertion(U identity, Function<T, U> mapper, BinaryOperator<U> reducer) { in ReduceAssertion() argument
216 this.reducer = reducer; in ReduceAssertion()
222 Optional<U> reduced = source.get().map(mapper).reduce(reducer); in assertValue()