Home
last modified time | relevance | path

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

/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;
220 BinaryOperator<A> combiner(); in combiner()
262 BinaryOperator<R> combiner, in of()
293 BinaryOperator<A> combiner, in of()
DCollectors.java51 import java.util.function.BinaryOperator;
132 private static <T> BinaryOperator<T> throwingMerger() { in throwingMerger()
150 private final BinaryOperator<A> combiner;
156 BinaryOperator<A> combiner, in CollectorImpl()
168 BinaryOperator<A> combiner, in CollectorImpl()
184 public BinaryOperator<A> combiner() { in combiner()
317 BinaryOperator<M> mapMerger(BinaryOperator<V> mergeFunction) {
432 return reducing(BinaryOperator.minBy(comparator));
451 return reducing(BinaryOperator.maxBy(comparator));
657 reducing(T identity, BinaryOperator<T> op) {
[all …]
Dpackage-info.java733 import java.util.function.BinaryOperator;
DStream.java39 import java.util.function.BinaryOperator;
604 T reduce(T identity, BinaryOperator<T> accumulator); in reduce()
644 Optional<T> reduce(BinaryOperator<T> accumulator); in reduce()
695 BinaryOperator<U> combiner); in reduce()
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();
343 BinaryOperator<R> combiner) {
479 BinaryOperator<R> combiner) {
615 BinaryOperator<R> combiner) {
DReferencePipeline.java35 import java.util.function.BinaryOperator;
474 public final P_OUT reduce(final P_OUT identity, final BinaryOperator<P_OUT> accumulator) {
479 public final Optional<P_OUT> reduce(BinaryOperator<P_OUT> accumulator) {
484 …<R> R reduce(R identity, BiFunction<R, ? super P_OUT, R> accumulator, BinaryOperator<R> combiner) {
516 return reduce(BinaryOperator.maxBy(comparator));
521 return reduce(BinaryOperator.minBy(comparator));
DDoublePipeline.java34 import java.util.function.BinaryOperator;
473 BinaryOperator<R> operator = (left, right) -> {
DLongPipeline.java35 import java.util.function.BinaryOperator;
451 BinaryOperator<R> operator = (left, right) -> {
DIntPipeline.java35 import java.util.function.BinaryOperator;
469 BinaryOperator<R> operator = (left, right) -> {
DNodes.java36 import java.util.function.BinaryOperator;
2154 protected final BinaryOperator<T_NODE> concFactory;
2159 BinaryOperator<T_NODE> concFactory) {
/libcore/luni/src/main/java/java/util/concurrent/atomic/
DAtomicReference.java9 import java.util.function.BinaryOperator;
172 BinaryOperator<V> accumulatorFunction) { in getAndAccumulate()
196 BinaryOperator<V> accumulatorFunction) { in accumulateAndGet()
DAtomicReferenceArray.java11 import java.util.function.BinaryOperator;
230 BinaryOperator<E> accumulatorFunction) { in getAndAccumulate()
256 BinaryOperator<E> accumulatorFunction) { in accumulateAndGet()
DAtomicReferenceFieldUpdater.java15 import java.util.function.BinaryOperator;
223 BinaryOperator<V> accumulatorFunction) { in getAndAccumulate()
248 BinaryOperator<V> accumulatorFunction) { in accumulateAndGet()
/libcore/ojluni/src/main/java/java/util/
DComparators.java28 import java.util.function.BinaryOperator;
DArrayPrefixHelpers.java11 import java.util.function.BinaryOperator;
78 final BinaryOperator<T> function;
85 BinaryOperator<T> function, in CumulateTask()
97 CumulateTask(CumulateTask<T> parent, BinaryOperator<T> function, in CumulateTask()
108 final BinaryOperator<T> fn; in compute()
DArrays.java31 import java.util.function.BinaryOperator;
1620 public static <T> void parallelPrefix(T[] array, BinaryOperator<T> op) { in parallelPrefix()
1644 int toIndex, BinaryOperator<T> op) { in parallelPrefix()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
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,
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DLambdaTestHelpers.java29 import java.util.function.BinaryOperator;
98 public static final BinaryOperator<Integer> rPlus = (x, y) -> x+y;
99 public static final BinaryOperator<Integer> rMax = (x, y) -> Math.max(x, y);
100 public static final BinaryOperator<Integer> rMin = (x, y) -> Math.min(x,y);
/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/
Dopenjdk_java_files.mk716 ojluni/src/main/java/java/util/function/BinaryOperator.java \