Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 11 of 11) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/concurrent/
DCompletionStageTest.java100 public <U> CompletionStage<U> thenApply(Function<? super T,? extends U> fn) { in thenApply() argument
104 public <U> CompletionStage<U> thenApplyAsync(Function<? super T,? extends U> fn) { in thenApplyAsync() argument
108 public <U> CompletionStage<U> thenApplyAsync(Function<? super T,? extends U> fn, in thenApplyAsync() argument
140 BiFunction<? super T,? super U,? extends V> fn) { in thenCombine() argument
145 BiFunction<? super T,? super U,? extends V> fn) { in thenCombineAsync() argument
150 BiFunction<? super T,? super U,? extends V> fn, in thenCombineAsync() argument
188 Function<? super T, U> fn) { in applyToEither() argument
193 Function<? super T, U> fn) { in applyToEitherAsync() argument
198 Function<? super T, U> fn, in applyToEitherAsync() argument
237 Function<? super T, ? extends CompletionStage<U>> fn) { in thenCompose() argument
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/
DCompletionStage.java170 public <U> CompletionStage<U> thenApply(Function<? super T,? extends U> fn); in thenApply() argument
187 (Function<? super T,? extends U> fn); in thenApplyAsync() argument
204 (Function<? super T,? extends U> fn, in thenApplyAsync() argument
310 BiFunction<? super T,? super U,? extends V> fn); in thenCombine() argument
330 BiFunction<? super T,? super U,? extends V> fn); in thenCombineAsync() argument
351 BiFunction<? super T,? super U,? extends V> fn, in thenCombineAsync() argument
475 Function<? super T, U> fn); in applyToEither() argument
494 Function<? super T, U> fn); in applyToEitherAsync() argument
514 Function<? super T, U> fn, in applyToEitherAsync() argument
648 (Function<? super T, ? extends CompletionStage<U>> fn); in thenCompose() argument
[all …]
DCompletableFuture.java597 Function<? super T,? extends V> fn; field in CompletableFuture.UniApply
600 Function<? super T,? extends V> fn) { in UniApply() argument
601 super(executor, dep, src); this.fn = fn; in UniApply()
607 || (d = dep) == null || (f = fn) == null) in tryFire()
628 src = null; dep = null; fn = null; in tryFire()
670 Consumer<? super T> fn; field in CompletableFuture.UniAccept
672 CompletableFuture<T> src, Consumer<? super T> fn) { in UniAccept() argument
673 super(executor, dep, src); this.fn = fn; in UniAccept()
679 || (d = dep) == null || (f = fn) == null) in tryFire()
701 src = null; dep = null; fn = null; in tryFire()
[all …]
/libcore/ojluni/src/main/java/java/util/
DArrayPrefixHelpers.java142 final BinaryOperator<T> fn; in compute() local
144 if ((fn = this.function) == null || (a = this.array) == null) in compute()
154 new CumulateTask<T>(t, fn, a, org, fnc, th, mid, h); in compute()
156 new CumulateTask<T>(t, fn, a, org, fnc, th, l, mid); in compute()
165 fn.apply(pin, lout)); in compute()
214 a[i] = sum = fn.apply(sum, a[i]); in compute()
219 sum = fn.apply(sum, a[i]); in compute()
241 fn.apply(lout, rt.out)); in compute()
296 final LongBinaryOperator fn; in compute() local
298 if ((fn = this.function) == null || (a = this.array) == null) in compute()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DStriped64.java230 final void longAccumulate(long x, LongBinaryOperator fn, in longAccumulate() argument
263 (fn == null) ? v + x : fn.applyAsLong(v, x))) in longAccumulate()
295 (fn == null) ? v + x : fn.applyAsLong(v, x))) in longAccumulate()
300 private static long apply(DoubleBinaryOperator fn, long v, double x) { in apply() argument
302 d = (fn == null) ? d + x : fn.applyAsDouble(d, x); in apply()
312 final void doubleAccumulate(double x, DoubleBinaryOperator fn, in doubleAccumulate() argument
344 else if (c.cas(v = c.value, apply(fn, v, x))) in doubleAccumulate()
375 else if (casBase(v = base, apply(fn, v, x))) in doubleAccumulate()
/libcore/ojluni/src/main/java/java/lang/
DPackage.java557 String fn = getSystemPackage0(name); in getSystemPackage() local
558 if (fn != null) { in getSystemPackage()
559 pkg = defineSystemPackage(name, fn); in getSystemPackage()
581 final String fn) in defineSystemPackage() argument
587 URL url = urls.get(fn); in defineSystemPackage()
590 File file = new File(fn); in defineSystemPackage()
596 urls.put(fn, url); in defineSystemPackage()
599 mans.put(fn, loadManifest(fn)); in defineSystemPackage()
606 Manifest man = mans.get(fn); in defineSystemPackage()
622 private static Manifest loadManifest(String fn) {
[all …]
/libcore/ojluni/annotations/mmodule/java/util/concurrent/
DCompletableFuture.annotated.java70 …ableFuture<U> thenApply(java.util.function.Function<? super T,? extends U> fn) { throw new Runtime… in thenApply() argument
72 …uture<U> thenApplyAsync(java.util.function.Function<? super T,? extends U> fn) { throw new Runtime… in thenApplyAsync() argument
74 …uture<U> thenApplyAsync(java.util.function.Function<? super T,? extends U> fn, java.util.concurren… in thenApplyAsync() argument
88 …s U> other, java.util.function.BiFunction<? super T,? super U,? extends V> fn) { throw new Runtime… in thenCombine() argument
90 …s U> other, java.util.function.BiFunction<? super T,? super U,? extends V> fn) { throw new Runtime… in thenCombineAsync() argument
92 …s U> other, java.util.function.BiFunction<? super T,? super U,? extends V> fn, java.util.concurren… in thenCombineAsync() argument
106 …mpletionStage<? extends T> other, java.util.function.Function<? super T,U> fn) { throw new Runtime… in applyToEither() argument
108 …mpletionStage<? extends T> other, java.util.function.Function<? super T,U> fn) { throw new Runtime… in applyToEitherAsync() argument
110 …mpletionStage<? extends T> other, java.util.function.Function<? super T,U> fn, java.util.concurren… in applyToEitherAsync() argument
124 …tion.Function<? super T,? extends java.util.concurrent.CompletionStage<U>> fn) { throw new Runtime… in thenCompose() argument
[all …]
/libcore/ojluni/src/main/java/sun/nio/fs/
DMimeTypesFileTypeDetector.java69 Path fn = path.getFileName(); in implProbeContentType() local
70 if (fn == null) in implProbeContentType()
73 String ext = getExtension(fn.toString()); in implProbeContentType()
/libcore/ojluni/src/main/java/java/time/chrono/
DHijrahChronology.java1060 .filter(fn -> fn.matches("hijrah-config-[^\\.]+\\.properties")) in registerCustomChrono()
1061 .map(fn -> fn.replaceAll("(hijrah-config-|\\.properties)", "")) in registerCustomChrono()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DCompletableFutureTest.java714 Function<Throwable, ? extends T> fn) {
715 return f.exceptionally(fn);
718 (CompletableFuture<T> f, Function<Throwable, ? extends CompletionStage<T>> fn) {
719 return f.exceptionallyCompose(fn);
796 Function<Throwable, ? extends T> fn) {
797 return f.exceptionallyAsync(fn);
801 (CompletableFuture<T> f, Function<Throwable, ? extends CompletionStage<T>> fn) {
802 return f.exceptionallyComposeAsync(fn);
880 Function<Throwable, ? extends T> fn) {
881 return f.exceptionallyAsync(fn, new ThreadExecutor());
[all …]
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java4805 int fn = firstNonzeroIntNumPlusTwo - 2;
4806 if (fn == -2) { // firstNonzeroIntNum not initialized yet
4812 fn = mlen - i - 1;
4813 firstNonzeroIntNumPlusTwo = fn + 2; // offset by two to initialize
4815 return fn;