@Override public <OUT> IPromise<OUT> thenAnd(Function<T, IPromise<OUT>> function) { if (realCallback instanceof IPromise == false) throw new RuntimeException("this is an error."); else return ((IPromise)realCallback).thenAnd(function); }
@Override public IPromise<T> thenAnd(Supplier<IPromise<T>> result) { if (realCallback instanceof IPromise == false) throw new RuntimeException("this is an error."); else return ((IPromise)realCallback).thenAnd(result); }
@Override public IPromise<T> thenAnd(Supplier<IPromise<T>> result) { if (realCallback instanceof IPromise == false) throw new RuntimeException("this is an error."); else return ((IPromise)realCallback).thenAnd(result); }
@Override public <OUT> IPromise<OUT> thenAnd(Function<T, IPromise<OUT>> function) { if (realCallback instanceof IPromise == false) throw new RuntimeException("this is an error."); else return ((IPromise)realCallback).thenAnd(function); }