/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * This file is available under and governed by the GNU General Public * License version 2 only, as published by the Free Software Foundation. * However, the following notice accompanied the original version of this * file: * * Written by Doug Lea with assistance from members of JCP JSR-166 * Expert Group and released to the public domain, as explained at * http://creativecommons.org/publicdomain/zero/1.0/ */ package java.util.concurrent; import java.util.function.Supplier; @SuppressWarnings({"unchecked", "deprecation", "all"}) public class CompletableFuture implements java.util.concurrent.Future, java.util.concurrent.CompletionStage { public CompletableFuture() { throw new RuntimeException("Stub!"); } public static java.util.concurrent.CompletableFuture supplyAsync(java.util.function.Supplier supplier) { throw new RuntimeException("Stub!"); } public static java.util.concurrent.CompletableFuture supplyAsync(java.util.function.Supplier supplier, java.util.concurrent.Executor executor) { throw new RuntimeException("Stub!"); } public static java.util.concurrent.CompletableFuture runAsync(java.lang.Runnable runnable) { throw new RuntimeException("Stub!"); } public static java.util.concurrent.CompletableFuture runAsync(java.lang.Runnable runnable, java.util.concurrent.Executor executor) { throw new RuntimeException("Stub!"); } public static java.util.concurrent.CompletableFuture completedFuture(U value) { throw new RuntimeException("Stub!"); } public boolean isDone() { throw new RuntimeException("Stub!"); } public T get() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException { throw new RuntimeException("Stub!"); } public T get(long timeout, java.util.concurrent.TimeUnit unit) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.util.concurrent.TimeoutException { throw new RuntimeException("Stub!"); } public T join() { throw new RuntimeException("Stub!"); } public T getNow(T valueIfAbsent) { throw new RuntimeException("Stub!"); } public boolean complete(T value) { throw new RuntimeException("Stub!"); } public boolean completeExceptionally(java.lang.Throwable ex) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture thenApply(java.util.function.Function fn) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture thenApplyAsync(java.util.function.Function fn) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture thenApplyAsync(java.util.function.Function fn, java.util.concurrent.Executor executor) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture thenAccept(java.util.function.Consumer action) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture thenAcceptAsync(java.util.function.Consumer action) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture thenAcceptAsync(java.util.function.Consumer action, java.util.concurrent.Executor executor) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture thenRun(java.lang.Runnable action) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture thenRunAsync(java.lang.Runnable action) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture thenRunAsync(java.lang.Runnable action, java.util.concurrent.Executor executor) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture thenCombine(java.util.concurrent.CompletionStage other, java.util.function.BiFunction fn) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture thenCombineAsync(java.util.concurrent.CompletionStage other, java.util.function.BiFunction fn) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture thenCombineAsync(java.util.concurrent.CompletionStage other, java.util.function.BiFunction fn, java.util.concurrent.Executor executor) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture thenAcceptBoth(java.util.concurrent.CompletionStage other, java.util.function.BiConsumer action) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture thenAcceptBothAsync(java.util.concurrent.CompletionStage other, java.util.function.BiConsumer action) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture thenAcceptBothAsync(java.util.concurrent.CompletionStage other, java.util.function.BiConsumer action, java.util.concurrent.Executor executor) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture runAfterBoth(java.util.concurrent.CompletionStage other, java.lang.Runnable action) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture runAfterBothAsync(java.util.concurrent.CompletionStage other, java.lang.Runnable action) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture runAfterBothAsync(java.util.concurrent.CompletionStage other, java.lang.Runnable action, java.util.concurrent.Executor executor) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture applyToEither(java.util.concurrent.CompletionStage other, java.util.function.Function fn) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture applyToEitherAsync(java.util.concurrent.CompletionStage other, java.util.function.Function fn) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture applyToEitherAsync(java.util.concurrent.CompletionStage other, java.util.function.Function fn, java.util.concurrent.Executor executor) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture acceptEither(java.util.concurrent.CompletionStage other, java.util.function.Consumer action) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture acceptEitherAsync(java.util.concurrent.CompletionStage other, java.util.function.Consumer action) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture acceptEitherAsync(java.util.concurrent.CompletionStage other, java.util.function.Consumer action, java.util.concurrent.Executor executor) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture runAfterEither(java.util.concurrent.CompletionStage other, java.lang.Runnable action) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture runAfterEitherAsync(java.util.concurrent.CompletionStage other, java.lang.Runnable action) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture runAfterEitherAsync(java.util.concurrent.CompletionStage other, java.lang.Runnable action, java.util.concurrent.Executor executor) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture thenCompose(java.util.function.Function> fn) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture thenComposeAsync(java.util.function.Function> fn) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture thenComposeAsync(java.util.function.Function> fn, java.util.concurrent.Executor executor) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture whenComplete(java.util.function.BiConsumer action) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture whenCompleteAsync(java.util.function.BiConsumer action) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture whenCompleteAsync(java.util.function.BiConsumer action, java.util.concurrent.Executor executor) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture handle(java.util.function.BiFunction fn) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture handleAsync(java.util.function.BiFunction fn) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture handleAsync(java.util.function.BiFunction fn, java.util.concurrent.Executor executor) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture toCompletableFuture() { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture exceptionally(java.util.function.Function fn) { throw new RuntimeException("Stub!"); } public static java.util.concurrent.CompletableFuture allOf(java.util.concurrent.CompletableFuture... cfs) { throw new RuntimeException("Stub!"); } public static java.util.concurrent.CompletableFuture anyOf(java.util.concurrent.CompletableFuture... cfs) { throw new RuntimeException("Stub!"); } public boolean cancel(boolean mayInterruptIfRunning) { throw new RuntimeException("Stub!"); } public boolean isCancelled() { throw new RuntimeException("Stub!"); } public boolean isCompletedExceptionally() { throw new RuntimeException("Stub!"); } public void obtrudeValue(T value) { throw new RuntimeException("Stub!"); } public void obtrudeException(java.lang.Throwable ex) { throw new RuntimeException("Stub!"); } public int getNumberOfDependents() { throw new RuntimeException("Stub!"); } public java.lang.String toString() { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture newIncompleteFuture() { throw new RuntimeException("Stub!"); } public java.util.concurrent.Executor defaultExecutor() { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture copy() { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletionStage minimalCompletionStage() { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture completeAsync(java.util.function.Supplier supplier, java.util.concurrent.Executor executor) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture completeAsync(java.util.function.Supplier supplier) { throw new RuntimeException("Stub!"); } public java.util.concurrent.CompletableFuture orTimeout(long timeout, java.util.concurrent.TimeUnit unit) { throw new RuntimeException("Stub!"); } @libcore.api.CorePlatformApi public java.util.concurrent.CompletableFuture completeOnTimeout(T value, long timeout, java.util.concurrent.TimeUnit unit) { throw new RuntimeException("Stub!"); } public static java.util.concurrent.Executor delayedExecutor(long delay, java.util.concurrent.TimeUnit unit, java.util.concurrent.Executor executor) { throw new RuntimeException("Stub!"); } public static java.util.concurrent.Executor delayedExecutor(long delay, java.util.concurrent.TimeUnit unit) { throw new RuntimeException("Stub!"); } public static java.util.concurrent.CompletionStage completedStage(U value) { throw new RuntimeException("Stub!"); } @libcore.api.CorePlatformApi public static java.util.concurrent.CompletableFuture failedFuture(java.lang.Throwable ex) { throw new RuntimeException("Stub!"); } public static java.util.concurrent.CompletionStage failedStage(java.lang.Throwable ex) { throw new RuntimeException("Stub!"); } @SuppressWarnings({"unchecked", "deprecation", "all"}) public static interface AsynchronousCompletionTask { } }