/libcore/luni/src/test/java/libcore/java/util/function/ |
H A D | BinaryOperatorTest.java | 22 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 D | DoubleUnaryOperatorTest.java | 22 import java.util.function.BinaryOperator;
|
/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | package-info.java | 375 * {@link java.util.stream.Stream#reduce(java.util.function.BinaryOperator) reduce()} 439 * BinaryOperator<U> combiner); 733 import java.util.function.BinaryOperator;
|
H A D | Collector.java | 32 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 D | Collectors.java | 51 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 D | Stream.java | 39 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 D | ReduceOps.java | 36 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 D | ReferencePipeline.java | 35 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 D | DoublePipeline.java | 34 import java.util.function.BinaryOperator; 473 BinaryOperator<R> operator = (left, right) -> {
|
H A D | LongPipeline.java | 35 import java.util.function.BinaryOperator; 451 BinaryOperator<R> operator = (left, right) -> {
|
H A D | IntPipeline.java | 35 import java.util.function.BinaryOperator; 469 BinaryOperator<R> operator = (left, right) -> {
|
H A D | Nodes.java | 36 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 D | BinaryOperator.java | 46 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 D | AtomicReference.java | 9 import java.util.function.BinaryOperator; 172 BinaryOperator<V> accumulatorFunction) { 196 BinaryOperator<V> accumulatorFunction) {
|
H A D | AtomicReferenceArray.java | 11 import java.util.function.BinaryOperator; 230 BinaryOperator<E> accumulatorFunction) { 256 BinaryOperator<E> accumulatorFunction) {
|
H A D | AtomicReferenceFieldUpdater.java | 15 import java.util.function.BinaryOperator; 223 BinaryOperator<V> accumulatorFunction) { 248 BinaryOperator<V> accumulatorFunction) {
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Comparators.java | 28 import java.util.function.BinaryOperator;
|
H A D | ArrayPrefixHelpers.java | 11 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 D | Arrays.java | 31 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 D | TabulatorsTest.java | 43 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 D | LambdaTestHelpers.java | 28 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 D | LambdaTestHelpers.java | 29 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 D | openjdk_java_files.mk | 716 ojluni/src/main/java/java/util/function/BinaryOperator.java \
|