Home
last modified time | relevance | path

Searched refs:BinaryOperator (Results 1 – 25 of 32) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/util/function/
DBinaryOperatorTest.java22 import java.util.function.BinaryOperator;
28 assertEquals("a", BinaryOperator.minBy(stringComparator).apply("a", "b")); in testMinBy()
33 BinaryOperator.minBy(null); in testMinBy_null()
40 assertEquals("b", BinaryOperator.maxBy(stringComparator).apply("a", "b")); in testMaxBy()
45 BinaryOperator.maxBy(null); in testMaxBy_null()
DDoubleUnaryOperatorTest.java22 import java.util.function.BinaryOperator;
/libcore/ojluni/src/main/java/java/util/function/
DBinaryOperator.java46 public interface BinaryOperator<T> extends BiFunction<T,T,T> { interface
57 public static <T> BinaryOperator<T> minBy(Comparator<? super T> comparator) { in minBy()
72 public static <T> BinaryOperator<T> maxBy(Comparator<? super T> comparator) { in maxBy()
/libcore/ojluni/src/main/java/java/util/stream/
DCollector.java32 import java.util.function.BinaryOperator;
224 BinaryOperator<A> combiner(); in combiner()
266 BinaryOperator<R> combiner, in of()
297 BinaryOperator<A> combiner, in of()
DCollectors.java50 import java.util.function.BinaryOperator;
151 BinaryOperator<M> uniqKeysMapMerger() { in uniqKeysMapMerger()
200 private final BinaryOperator<A> combiner;
206 BinaryOperator<A> combiner,
218 BinaryOperator<A> combiner,
234 public BinaryOperator<A> combiner() {
430 BinaryOperator<M> mapMerger(BinaryOperator<V> mergeFunction) {
647 return reducing(BinaryOperator.minBy(comparator));
666 return reducing(BinaryOperator.maxBy(comparator));
883 reducing(T identity, BinaryOperator<T> op) {
[all …]
Dpackage-info.java755 import java.util.function.BinaryOperator;
DStream.java33 import java.util.function.BinaryOperator;
961 T reduce(T identity, BinaryOperator<T> accumulator);
1001 Optional<T> reduce(BinaryOperator<T> accumulator);
1052 BinaryOperator<U> combiner);
DReduceOps.java36 import java.util.function.BinaryOperator;
69 makeRef(U seed, BiFunction<U, ? super T, U> reducer, BinaryOperator<U> combiner) { in makeRef()
105 makeRef(BinaryOperator<T> operator) {
159 BinaryOperator<I> combiner = collector.combiner();
384 BinaryOperator<R> combiner) {
560 BinaryOperator<R> combiner) {
736 BinaryOperator<R> combiner) {
DReferencePipeline.java38 import java.util.function.BinaryOperator;
680 public final P_OUT reduce(final P_OUT identity, final BinaryOperator<P_OUT> accumulator) {
685 public final Optional<P_OUT> reduce(BinaryOperator<P_OUT> accumulator) {
690 …<R> R reduce(R identity, BiFunction<R, ? super P_OUT, R> accumulator, BinaryOperator<R> combiner) {
722 return reduce(BinaryOperator.maxBy(comparator));
727 return reduce(BinaryOperator.minBy(comparator));
DIntPipeline.java35 import java.util.function.BinaryOperator;
546 BinaryOperator<R> operator = (left, right) -> {
DLongPipeline.java35 import java.util.function.BinaryOperator;
529 BinaryOperator<R> operator = (left, right) -> {
DDoublePipeline.java34 import java.util.function.BinaryOperator;
554 BinaryOperator<R> operator = (left, right) -> {
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DAtomicReference.java40 import java.util.function.BinaryOperator;
233 BinaryOperator<V> accumulatorFunction) { in getAndAccumulate()
260 BinaryOperator<V> accumulatorFunction) { in accumulateAndGet()
DAtomicReferenceFieldUpdater.java43 import java.util.function.BinaryOperator;
262 BinaryOperator<V> accumulatorFunction) { in getAndAccumulate()
288 BinaryOperator<V> accumulatorFunction) { in accumulateAndGet()
DAtomicReferenceArray.java43 import java.util.function.BinaryOperator;
259 BinaryOperator<E> accumulatorFunction) { in getAndAccumulate()
288 BinaryOperator<E> accumulatorFunction) { in accumulateAndGet()
/libcore/ojluni/annotations/flagged_api/java/util/stream/
DCollectors.annotated.java75 …util.stream.Collector<T,?,T> reducing(T identity, java.util.function.BinaryOperator<T> op) { throw… in reducing()
77 …eam.Collector<T,?,java.util.Optional<T>> reducing(java.util.function.BinaryOperator<T> op) { throw… in reducing()
79 ….function.Function<? super T,? extends U> mapper, java.util.function.BinaryOperator<U> op) { throw… in reducing()
101 …tion.Function<? super T,? extends U> valueMapper, java.util.function.BinaryOperator<U> mergeFuncti… in toMap()
103 …tion.Function<? super T,? extends U> valueMapper, java.util.function.BinaryOperator<U> mergeFuncti… in toUnmodifiableMap()
105 …tion.Function<? super T,? extends U> valueMapper, java.util.function.BinaryOperator<U> mergeFuncti… in toMap()
109 …tion.Function<? super T,? extends U> valueMapper, java.util.function.BinaryOperator<U> mergeFuncti… in toConcurrentMap()
111 …tion.Function<? super T,? extends U> valueMapper, java.util.function.BinaryOperator<U> mergeFuncti… in toConcurrentMap()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DCollectorExample.java39 import java.util.function.BinaryOperator;
69 BinaryOperator<A> combiner = collector.combiner(); in testSnippet1()
DTabulatorsTest.java43 import java.util.function.BinaryOperator;
114 private final BinaryOperator<V> mergeFn;
118 BinaryOperator<V> mergeFn, in ToMapAssertion()
211 private final BinaryOperator<U> reducer;
213 ReduceAssertion(U identity, Function<T, U> mapper, BinaryOperator<U> reducer) { in ReduceAssertion()
405 BinaryOperator<Integer> sum = Integer::sum;
406 for (BinaryOperator<Integer> op : Arrays.asList((u, v) -> u,
DCollectorsTest.java44 import java.util.function.BinaryOperator;
173 private final BinaryOperator<V> mergeFn;
177 BinaryOperator<V> mergeFn, in ToMapAssertion()
269 private final BinaryOperator<U> reducer;
271 ReducingAssertion(U identity, Function<T, U> mapper, BinaryOperator<U> reducer) { in ReducingAssertion()
484 BinaryOperator<Integer> sum = Integer::sum;
485 for (BinaryOperator<Integer> op : Arrays.asList((u, v) -> u,
/libcore/ojluni/src/main/java/java/util/
DComparators.java28 import java.util.function.BinaryOperator;
DArrayPrefixHelpers.java40 import java.util.function.BinaryOperator;
109 final BinaryOperator<T> function;
119 BinaryOperator<T> function, in CumulateTask()
131 CumulateTask(CumulateTask<T> parent, BinaryOperator<T> function, in CumulateTask()
142 final BinaryOperator<T> fn; in compute()
/libcore/ojluni/src/test/java/util/stream/Collectors/
DCollectorsTest.java42 import java.util.function.BinaryOperator;
176 private final BinaryOperator<V> mergeFn;
180 BinaryOperator<V> mergeFn, in ToMapAssertion()
272 private final BinaryOperator<U> reducer;
274 ReducingAssertion(U identity, Function<T, U> mapper, BinaryOperator<U> reducer) { in ReducingAssertion()
466 BinaryOperator<Integer> sum = Integer::sum;
467 for (BinaryOperator<Integer> op : Arrays.asList((u, v) -> u,
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DLambdaTestHelpers.java28 import java.util.function.BinaryOperator;
97 public static final BinaryOperator<Integer> rPlus = (x, y) -> x+y;
98 public static final BinaryOperator<Integer> rMax = (x, y) -> Math.max(x, y);
99 public static final BinaryOperator<Integer> rMin = (x, y) -> Math.min(x,y);
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DLambdaTestHelpers.java29 import java.util.function.BinaryOperator;
99 public static final BinaryOperator<Integer> rPlus = (x, y) -> x+y;
100 public static final BinaryOperator<Integer> rMax = (x, y) -> Math.max(x, y);
101 public static final BinaryOperator<Integer> rMin = (x, y) -> Math.min(x,y);
DDefaultMethodStreams.java43 import java.util.function.BinaryOperator;
282 public T reduce(T identity, BinaryOperator<T> accumulator) { in reduce()
287 public Optional<T> reduce(BinaryOperator<T> accumulator) { in reduce()
292 …public <U> U reduce(U identity, BiFunction<U, ? super T, U> accumulator, BinaryOperator<U> combine… in reduce()

12