/libcore/luni/src/test/java/libcore/java/util/function/ |
D | BinaryOperatorTest.java | 22 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()
|
D | DoubleUnaryOperatorTest.java | 22 import java.util.function.BinaryOperator;
|
/libcore/ojluni/src/main/java/java/util/function/ |
D | BinaryOperator.java | 46 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/ |
D | Collector.java | 32 import java.util.function.BinaryOperator; 224 BinaryOperator<A> combiner(); in combiner() 266 BinaryOperator<R> combiner, in of() 297 BinaryOperator<A> combiner, in of()
|
D | Collectors.java | 50 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 …]
|
D | package-info.java | 755 import java.util.function.BinaryOperator;
|
D | Stream.java | 33 import java.util.function.BinaryOperator; 961 T reduce(T identity, BinaryOperator<T> accumulator); 1001 Optional<T> reduce(BinaryOperator<T> accumulator); 1052 BinaryOperator<U> combiner);
|
D | ReduceOps.java | 36 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) {
|
D | ReferencePipeline.java | 38 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));
|
D | IntPipeline.java | 35 import java.util.function.BinaryOperator; 546 BinaryOperator<R> operator = (left, right) -> {
|
D | LongPipeline.java | 35 import java.util.function.BinaryOperator; 529 BinaryOperator<R> operator = (left, right) -> {
|
D | DoublePipeline.java | 34 import java.util.function.BinaryOperator; 554 BinaryOperator<R> operator = (left, right) -> {
|
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicReference.java | 40 import java.util.function.BinaryOperator; 233 BinaryOperator<V> accumulatorFunction) { in getAndAccumulate() 260 BinaryOperator<V> accumulatorFunction) { in accumulateAndGet()
|
D | AtomicReferenceFieldUpdater.java | 43 import java.util.function.BinaryOperator; 262 BinaryOperator<V> accumulatorFunction) { in getAndAccumulate() 288 BinaryOperator<V> accumulatorFunction) { in accumulateAndGet()
|
D | AtomicReferenceArray.java | 43 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/ |
D | Collectors.annotated.java | 75 …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/ |
D | CollectorExample.java | 39 import java.util.function.BinaryOperator; 69 BinaryOperator<A> combiner = collector.combiner(); in testSnippet1()
|
D | TabulatorsTest.java | 43 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,
|
D | CollectorsTest.java | 44 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/ |
D | Comparators.java | 28 import java.util.function.BinaryOperator;
|
D | ArrayPrefixHelpers.java | 40 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/ |
D | CollectorsTest.java | 42 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/ |
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/ |
D | LambdaTestHelpers.java | 29 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);
|
D | DefaultMethodStreams.java | 43 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()
|