Home
last modified time | relevance | path

Searched refs:function (Results 1 – 25 of 332) sorted by relevance

12345678910>>...14

/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DLongAccumulator.java39 import java.util.function.LongBinaryOperator;
84 private final LongBinaryOperator function; field in LongAccumulator
95 this.function = accumulatorFunction; in LongAccumulator()
107 (r = function.applyAsLong(b = base, x)) != b && !casBase(b, r)) { in accumulate()
112 (r = function.applyAsLong(v = a.value, x)) == v || in accumulate()
114 longAccumulate(x, function, uncontended); in accumulate()
133 result = function.applyAsLong(result, a.value); in get()
175 result = function.applyAsLong(result, v); in getThenReset()
241 private final LongBinaryOperator function; field in LongAccumulator.SerializationProxy
250 LongBinaryOperator function, in SerializationProxy() argument
[all …]
DDoubleAccumulator.java39 import java.util.function.DoubleBinaryOperator;
82 private final DoubleBinaryOperator function; field in DoubleAccumulator
93 this.function = accumulatorFunction; in DoubleAccumulator()
106 (function.applyAsDouble in accumulate()
113 (function.applyAsDouble in accumulate()
116 doubleAccumulate(x, function, uncontended); in accumulate()
135 result = function.applyAsDouble in get()
178 result = function.applyAsDouble(result, v); in getThenReset()
244 private final DoubleBinaryOperator function; field in DoubleAccumulator.SerializationProxy
255 DoubleBinaryOperator function, in SerializationProxy() argument
[all …]
/libcore/ojluni/annotations/sdk/nullability/java/util/concurrent/
DConcurrentHashMap.annotated.java49 import java.util.function.Function;
104 …public void forEach(@libcore.util.NonNull java.util.function.BiConsumer<? super @libcore.util.NonN… in forEach()
106 …ll java.util.function.BiFunction<? super @libcore.util.NonNull K,? super @libcore.util.NonNull V,?… in replaceAll() argument
108 …teIfAbsent(@libcore.util.NonNull K key, @libcore.util.NonNull java.util.function.Function<? super … in computeIfAbsent()
110 …eIfPresent(@libcore.util.NonNull K key, @libcore.util.NonNull java.util.function.BiFunction<? supe… in computeIfPresent()
112 … V compute(@libcore.util.NonNull K key, @libcore.util.NonNull java.util.function.BiFunction<? supe… in compute()
114 …l K key, @libcore.util.NonNull V value, @libcore.util.NonNull java.util.function.BiFunction<? supe… in merge()
130 …public void forEach(long parallelismThreshold, @libcore.util.NonNull java.util.function.BiConsumer… in forEach()
132function.BiFunction<? super @libcore.util.NonNull K,? super @libcore.util.NonNull V,? extends @lib… in forEach()
134 …<U> U search(long parallelismThreshold, @libcore.util.NonNull java.util.function.BiFunction<? supe… in search()
[all …]
/libcore/ojluni/annotations/mmodule/java/util/concurrent/
DCompletableFuture.annotated.java39 import java.util.function.Supplier;
46 public static <U> java.util.concurrent.CompletableFuture<U> supplyAsync(java.util.function.Supplier… in supplyAsync()
48 public static <U> java.util.concurrent.CompletableFuture<U> supplyAsync(java.util.function.Supplier… in supplyAsync()
70 public <U> java.util.concurrent.CompletableFuture<U> thenApply(java.util.function.Function<? super … in thenApply()
72 public <U> java.util.concurrent.CompletableFuture<U> thenApplyAsync(java.util.function.Function<? s… in thenApplyAsync()
74 public <U> java.util.concurrent.CompletableFuture<U> thenApplyAsync(java.util.function.Function<? s… in thenApplyAsync()
76 public java.util.concurrent.CompletableFuture<java.lang.Void> thenAccept(java.util.function.Consume… in thenAccept()
78 public java.util.concurrent.CompletableFuture<java.lang.Void> thenAcceptAsync(java.util.function.Co… in thenAcceptAsync()
80 public java.util.concurrent.CompletableFuture<java.lang.Void> thenAcceptAsync(java.util.function.Co… in thenAcceptAsync()
88 …bine(java.util.concurrent.CompletionStage<? extends U> other, java.util.function.BiFunction<? supe… in thenCombine()
[all …]
/libcore/ojluni/src/main/java/java/util/stream/
DDoubleStream.java39 import java.util.function.BiConsumer;
40 import java.util.function.DoubleBinaryOperator;
41 import java.util.function.DoubleConsumer;
42 import java.util.function.DoubleFunction;
43 import java.util.function.DoublePredicate;
44 import java.util.function.DoubleSupplier;
45 import java.util.function.DoubleToIntFunction;
46 import java.util.function.DoubleToLongFunction;
47 import java.util.function.DoubleUnaryOperator;
48 import java.util.function.Function;
[all …]
DIntStream.java35 import java.util.function.BiConsumer;
36 import java.util.function.Function;
37 import java.util.function.IntBinaryOperator;
38 import java.util.function.IntConsumer;
39 import java.util.function.IntFunction;
40 import java.util.function.IntPredicate;
41 import java.util.function.IntSupplier;
42 import java.util.function.IntToDoubleFunction;
43 import java.util.function.IntToLongFunction;
44 import java.util.function.IntUnaryOperator;
[all …]
DLongStream.java40 import java.util.function.BiConsumer;
41 import java.util.function.Function;
42 import java.util.function.LongBinaryOperator;
43 import java.util.function.LongConsumer;
44 import java.util.function.LongFunction;
45 import java.util.function.LongPredicate;
46 import java.util.function.LongSupplier;
47 import java.util.function.LongToDoubleFunction;
48 import java.util.function.LongToIntFunction;
49 import java.util.function.LongUnaryOperator;
[all …]
DStream.java39 import java.util.function.BiConsumer;
40 import java.util.function.BiFunction;
41 import java.util.function.BinaryOperator;
42 import java.util.function.Consumer;
43 import java.util.function.Function;
44 import java.util.function.IntFunction;
45 import java.util.function.Predicate;
46 import java.util.function.Supplier;
47 import java.util.function.ToDoubleFunction;
48 import java.util.function.ToIntFunction;
[all …]
Dpackage-info.java739 import java.util.function.BinaryOperator;
740 import java.util.function.UnaryOperator;
DCollector.java31 import java.util.function.BiConsumer;
32 import java.util.function.BinaryOperator;
33 import java.util.function.Function;
34 import java.util.function.Supplier;
/libcore/ojluni/src/main/java/java/util/
DArrayPrefixHelpers.java40 import java.util.function.BinaryOperator;
41 import java.util.function.DoubleBinaryOperator;
42 import java.util.function.IntBinaryOperator;
43 import java.util.function.LongBinaryOperator;
107 final BinaryOperator<T> function; field in ArrayPrefixHelpers.CumulateTask
114 BinaryOperator<T> function, in CumulateTask() argument
117 this.function = function; this.array = array; in CumulateTask()
126 CumulateTask(CumulateTask<T> parent, BinaryOperator<T> function, in CumulateTask() argument
130 this.function = function; this.array = array; in CumulateTask()
139 if ((fn = this.function) == null || (a = this.array) == null) in compute()
[all …]
DComparators.java28 import java.util.function.BinaryOperator;
29 import java.util.function.Function;
30 import java.util.function.ToDoubleFunction;
31 import java.util.function.ToIntFunction;
32 import java.util.function.ToLongFunction;
DPrimitiveIterator.java27 import java.util.function.Consumer;
28 import java.util.function.DoubleConsumer;
29 import java.util.function.IntConsumer;
30 import java.util.function.LongConsumer;
DOptional.java27 import java.util.function.Consumer;
28 import java.util.function.Function;
29 import java.util.function.Predicate;
30 import java.util.function.Supplier;
DOptionalInt.java27 import java.util.function.IntConsumer;
28 import java.util.function.IntSupplier;
29 import java.util.function.Supplier;
DOptionalLong.java27 import java.util.function.LongConsumer;
28 import java.util.function.LongSupplier;
29 import java.util.function.Supplier;
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/atomic/
DAtomicInteger.java99 public final int getAndUpdate(java.util.function.IntUnaryOperator updateFunction) { in getAndUpdate()
103 public final int updateAndGet(java.util.function.IntUnaryOperator updateFunction) { in updateAndGet()
108 int x, java.util.function.IntBinaryOperator accumulatorFunction) { in getAndAccumulate()
113 int x, java.util.function.IntBinaryOperator accumulatorFunction) { in accumulateAndGet()
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DLambdaTestHelpers.java26 import java.util.function.BiConsumer;
27 import java.util.function.BiPredicate;
28 import java.util.function.BinaryOperator;
29 import java.util.function.Consumer;
30 import java.util.function.DoubleBinaryOperator;
31 import java.util.function.DoubleConsumer;
32 import java.util.function.DoublePredicate;
33 import java.util.function.Function;
34 import java.util.function.IntBinaryOperator;
35 import java.util.function.IntConsumer;
[all …]
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DLambdaTestHelpers.java27 import java.util.function.BiConsumer;
28 import java.util.function.BiPredicate;
29 import java.util.function.BinaryOperator;
30 import java.util.function.Consumer;
31 import java.util.function.DoubleBinaryOperator;
32 import java.util.function.DoubleConsumer;
33 import java.util.function.DoublePredicate;
34 import java.util.function.Function;
35 import java.util.function.IntBinaryOperator;
36 import java.util.function.IntConsumer;
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentMap.java40 import java.util.function.BiConsumer;
41 import java.util.function.BiFunction;
42 import java.util.function.Function;
287 default void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) { in replaceAll() argument
288 Objects.requireNonNull(function); in replaceAll()
290 while (!replace(k, v, function.apply(k, v))) { in replaceAll()
/libcore/luni/src/test/java/libcore/java/math/
DCSVTest.java66 String function = testCase[0]; in runTest() local
70 if (twoInputFunctions.contains(function)) { in runTest()
75 run2InputTest(function, expectedOutput, input, input2, extra); in runTest()
80 runTest(function, expectedOutput, input, extra); in runTest()
/libcore/luni/src/test/java/libcore/java/util/function/
DBiFunctionTest.java17 package libcore.java.util.function;
21 import java.util.function.BiFunction;
22 import java.util.function.Function;
DDoubleUnaryOperatorTest.java17 package libcore.java.util.function;
22 import java.util.function.BinaryOperator;
23 import java.util.function.DoubleUnaryOperator;
/libcore/ojluni/annotations/hiddenapi/java/util/
DArrays.java198 public static <T> void parallelPrefix(T[] array, java.util.function.BinaryOperator<T> op) { in parallelPrefix()
203 T[] array, int fromIndex, int toIndex, java.util.function.BinaryOperator<T> op) { in parallelPrefix()
207 public static void parallelPrefix(long[] array, java.util.function.LongBinaryOperator op) { in parallelPrefix()
212 long[] array, int fromIndex, int toIndex, java.util.function.LongBinaryOperator op) { in parallelPrefix()
216 public static void parallelPrefix(double[] array, java.util.function.DoubleBinaryOperator op) { in parallelPrefix()
224 java.util.function.DoubleBinaryOperator op) { in parallelPrefix()
228 public static void parallelPrefix(int[] array, java.util.function.IntBinaryOperator op) { in parallelPrefix()
233 int[] array, int fromIndex, int toIndex, java.util.function.IntBinaryOperator op) { in parallelPrefix()
641 T[] array, java.util.function.IntFunction<? extends T> generator) { in setAll()
646 T[] array, java.util.function.IntFunction<? extends T> generator) { in parallelSetAll()
[all …]
/libcore/ojluni/annotations/sdk/nullability/java/util/
DHashMap.annotated.java75 …(@libcore.util.NullFromTypeParam K key, @libcore.util.NonNull java.util.function.Function<? super … in computeIfAbsent()
77 …(@libcore.util.NullFromTypeParam K key, @libcore.util.NonNull java.util.function.BiFunction<? supe… in computeIfPresent()
79 …(@libcore.util.NullFromTypeParam K key, @libcore.util.NonNull java.util.function.BiFunction<? supe… in compute()
81 …m K key, @libcore.util.NonNull V value, @libcore.util.NonNull java.util.function.BiFunction<? supe… in merge()
83 public void forEach(@libcore.util.NonNull java.util.function.BiConsumer<? super @libcore.util.NullF… in forEach()
85function.BiFunction<? super @libcore.util.NullFromTypeParam K,? super @libcore.util.NullFromTypePa… in replaceAll() argument

12345678910>>...14