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

/libcore/luni/src/test/java/libcore/java/util/function/
H A DBinaryOperatorTest.java22 import java.util.function.BinaryOperator;
28 assertEquals("a", BinaryOperator.minBy(stringComparator).apply("a", "b"));
33 BinaryOperator.minBy(null);
40 assertEquals("b", BinaryOperator.maxBy(stringComparator).apply("a", "b"));
45 BinaryOperator.maxBy(null);
H A DDoubleUnaryOperatorTest.java22 import java.util.function.BinaryOperator;
/libcore/ojluni/src/main/java/java/util/stream/
H A Dpackage-info.java375 * {@link java.util.stream.Stream#reduce(java.util.function.BinaryOperator) reduce()}
439 * BinaryOperator<U> combiner);
733 import java.util.function.BinaryOperator;
H A DCollector.java32 import java.util.function.BinaryOperator;
140 * static factory methods {@link #of(Supplier, BiConsumer, BinaryOperator, Characteristics...)}
220 BinaryOperator<A> combiner();
262 BinaryOperator<R> combiner,
293 BinaryOperator<A> combiner,
H A DCollectors.java51 import java.util.function.BinaryOperator;
125 * {@link #toMap(Function, Function, BinaryOperator) toMap()}, which always
132 private static <T> BinaryOperator<T> throwingMerger() {
150 private final BinaryOperator<A> combiner;
156 BinaryOperator<A> combiner,
168 BinaryOperator<A> combiner,
184 public BinaryOperator<A> combiner() {
305 * {@code BinaryOperator<Map>} that merges the contents of its right
317 BinaryOperator<M> mapMerger(BinaryOperator<
[all...]
H A DStream.java39 import java.util.function.BinaryOperator;
604 T reduce(T identity, BinaryOperator<T> accumulator);
640 * @see #reduce(Object, BinaryOperator)
644 Optional<T> reduce(BinaryOperator<T> accumulator);
690 * @see #reduce(BinaryOperator)
691 * @see #reduce(Object, BinaryOperator)
695 BinaryOperator<U> combiner);
711 * <p>Like {@link #reduce(Object, BinaryOperator)}, {@code collect} operations
H A DReduceOps.java36 import java.util.function.BinaryOperator;
69 makeRef(U seed, BiFunction<U, ? super T, U> reducer, BinaryOperator<U> combiner) {
105 makeRef(BinaryOperator<T> operator) {
159 BinaryOperator<I> combiner = collector.combiner();
343 BinaryOperator<R> combiner) {
479 BinaryOperator<R> combiner) {
615 BinaryOperator<R> combiner) {
H A 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 public final <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));
H A DDoublePipeline.java34 import java.util.function.BinaryOperator;
473 BinaryOperator<R> operator = (left, right) -> {
H A DLongPipeline.java35 import java.util.function.BinaryOperator;
451 BinaryOperator<R> operator = (left, right) -> {
H A DIntPipeline.java35 import java.util.function.BinaryOperator;
469 BinaryOperator<R> operator = (left, right) -> {
H A DNodes.java36 import java.util.function.BinaryOperator;
2154 protected final BinaryOperator<T_NODE> concFactory;
2159 BinaryOperator<T_NODE> concFactory) {
/libcore/ojluni/src/main/java/java/util/function/
H A DBinaryOperator.java46 public interface BinaryOperator<T> extends BiFunction<T,T,T> { interface in inherits:BiFunction
48 * Returns a {@link BinaryOperator} which returns the lesser of two elements
53 * @return a {@code BinaryOperator} which returns the lesser of its operands,
57 public static <T> BinaryOperator<T> minBy(Comparator<? super T> comparator) {
63 * Returns a {@link BinaryOperator} which returns the greater of two elements
68 * @return a {@code BinaryOperator} which returns the greater of its operands,
72 public static <T> BinaryOperator<T> maxBy(Comparator<? super T> comparator) {
/libcore/luni/src/main/java/java/util/concurrent/atomic/
H A DAtomicReference.java9 import java.util.function.BinaryOperator;
172 BinaryOperator<V> accumulatorFunction) {
196 BinaryOperator<V> accumulatorFunction) {
H A DAtomicReferenceArray.java11 import java.util.function.BinaryOperator;
230 BinaryOperator<E> accumulatorFunction) {
256 BinaryOperator<E> accumulatorFunction) {
H A DAtomicReferenceFieldUpdater.java15 import java.util.function.BinaryOperator;
223 BinaryOperator<V> accumulatorFunction) {
248 BinaryOperator<V> accumulatorFunction) {
/libcore/ojluni/src/main/java/java/util/
H A DComparators.java28 import java.util.function.BinaryOperator;
H A DArrayPrefixHelpers.java11 import java.util.function.BinaryOperator;
78 final BinaryOperator<T> function;
85 BinaryOperator<T> function,
97 CumulateTask(CumulateTask<T> parent, BinaryOperator<T> function,
108 final BinaryOperator<T> fn;
H A DArrays.java31 import java.util.function.BinaryOperator;
1620 public static <T> void parallelPrefix(T[] array, BinaryOperator<T> op) {
1628 * Performs {@link #parallelPrefix(Object[], BinaryOperator)}
1644 int toIndex, BinaryOperator<T> op) {
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DTabulatorsTest.java43 import java.util.function.BinaryOperator;
114 private final BinaryOperator<V> mergeFn;
118 BinaryOperator<V> mergeFn,
211 private final BinaryOperator<U> reducer;
213 ReduceAssertion(U identity, Function<T, U> mapper, BinaryOperator<U> reducer) {
405 BinaryOperator<Integer> sum = Integer::sum;
406 for (BinaryOperator<Integer> op : Arrays.asList((u, v) -> u,
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
H A 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/
H A 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/
H A Dopenjdk_java_files.mk716 ojluni/src/main/java/java/util/function/BinaryOperator.java \

Completed in 250 milliseconds