/** * Return a new {@link FailedPromiseImpl} using the {@link PromiseFactory} * of this PromiseImpl. * * @param f Failure for the FailedPromiseImpl. * @return A new FailedPromiseImpl. * @since 1.1 */ <V> FailedPromiseImpl<V> failed(Throwable f) { return new FailedPromiseImpl<>(f, factory); }
/** * Return a new {@link FailedPromiseImpl} using the {@link PromiseFactory} * of this PromiseImpl. * * @param f Failure for the FailedPromiseImpl. * @return A new FailedPromiseImpl. * @since 1.1 */ <V> FailedPromiseImpl<V> failed(Throwable f) { return new FailedPromiseImpl<>(f, factory); }
/** * Return a new {@link FailedPromiseImpl} using the {@link PromiseFactory} * of this PromiseImpl. * * @param f Failure for the FailedPromiseImpl. * @return A new FailedPromiseImpl. * @since 1.1 */ <V> FailedPromiseImpl<V> failed(Throwable f) { return new FailedPromiseImpl<>(f, factory); }
/** * Return a new {@link FailedPromiseImpl} using the {@link PromiseFactory} * of this PromiseImpl. * * @param f Failure for the FailedPromiseImpl. * @return A new FailedPromiseImpl. * @since 1.1 */ <V> FailedPromiseImpl<V> failed(Throwable f) { return new FailedPromiseImpl<>(f, factory); }
/** * Return a new {@link FailedPromiseImpl} using the {@link PromiseFactory} * of this PromiseImpl. * * @param f Failure for the FailedPromiseImpl. * @return A new FailedPromiseImpl. * @since 1.1 */ <V> FailedPromiseImpl<V> failed(Throwable f) { return new FailedPromiseImpl<>(f, factory); }
/** * Return a new {@link FailedPromiseImpl} using the {@link PromiseFactory} * of this PromiseImpl. * * @param f Failure for the FailedPromiseImpl. * @return A new FailedPromiseImpl. * @since 1.1 */ <V> FailedPromiseImpl<V> failed(Throwable f) { return new FailedPromiseImpl<>(f, factory); }
/** * Return a new {@link FailedPromiseImpl} using the {@link PromiseFactory} * of this PromiseImpl. * * @param f Failure for the FailedPromiseImpl. * @return A new FailedPromiseImpl. * @since 1.1 */ <V> FailedPromiseImpl<V> failed(Throwable f) { return new FailedPromiseImpl<>(f, factory); }
/** * Returns a new Promise that has been resolved with the specified failure. * <p> * The returned Promise uses the callback executor and scheduled executor of * this PromiseFactory object. * <p> * Use this method instead of {@link Promises#failed(Throwable)} to create a * Promise which uses executors other than the default executors. * * @param <T> The value type associated with the returned Promise. * @param failure The failure of the resolved Promise. Must not be * {@code null}. * @return A new Promise that has been resolved with the specified failure. */ public <T> Promise<T> failed(Throwable failure) { return new FailedPromiseImpl<>(failure, this); }
/** * Returns a new Promise that has been resolved with the specified failure. * <p> * The returned Promise uses the callback executor and scheduled executor of * this PromiseFactory object * <p> * Use this method instead of {@link Promises#failed(Throwable)} to create a * Promise which uses executors other than the default executors. * * @param <T> The value type associated with the returned Promise. * @param failure The failure of the resolved Promise. Must not be * {@code null}. * @return A new Promise that has been resolved with the specified failure. */ public <T> Promise<T> failed(Throwable failure) { return new FailedPromiseImpl<>(failure, this); }
/** * Returns a new Promise that has been resolved with the specified failure. * <p> * The returned Promise uses the callback executor and scheduled executor of * this PromiseFactory object. * <p> * Use this method instead of {@link Promises#failed(Throwable)} to create a * Promise which uses executors other than the default executors. * * @param <T> The value type associated with the returned Promise. * @param failure The failure of the resolved Promise. Must not be * {@code null}. * @return A new Promise that has been resolved with the specified failure. */ public <T> Promise<T> failed(Throwable failure) { return new FailedPromiseImpl<>(failure, this); }
/** * Returns a new Promise that has been resolved with the specified failure. * <p> * The returned Promise uses the callback executor and scheduled executor of * this PromiseFactory object. * <p> * Use this method instead of {@link Promises#failed(Throwable)} to create a * Promise which uses executors other than the default executors. * * @param <T> The value type associated with the returned Promise. * @param failure The failure of the resolved Promise. Must not be * {@code null}. * @return A new Promise that has been resolved with the specified failure. */ public <T> Promise<T> failed(Throwable failure) { return new FailedPromiseImpl<>(failure, this); }
/** * Returns a new Promise that has been resolved with the specified failure. * <p> * The returned Promise uses the callback executor and scheduled executor of * this PromiseFactory object. * <p> * Use this method instead of {@link Promises#failed(Throwable)} to create a * Promise which uses executors other than the default executors. * * @param <T> The value type associated with the returned Promise. * @param failure The failure of the resolved Promise. Must not be * {@code null}. * @return A new Promise that has been resolved with the specified failure. */ public <T> Promise<T> failed(Throwable failure) { return new FailedPromiseImpl<>(failure, this); }
/** * Returns a new Promise that has been resolved with the specified failure. * <p> * The returned Promise uses the callback executor and scheduled executor of * this PromiseFactory object. * <p> * Use this method instead of {@link Promises#failed(Throwable)} to create a * Promise which uses executors other than the default executors. * * @param <T> The value type associated with the returned Promise. * @param failure The failure of the resolved Promise. Must not be * {@code null}. * @return A new Promise that has been resolved with the specified failure. */ public <T> Promise<T> failed(Throwable failure) { return new FailedPromiseImpl<>(failure, this); }
/** * Returns a new Promise that has been resolved with the specified failure. * <p> * The returned Promise uses the callback executor and scheduled executor of * this PromiseFactory object * <p> * Use this method instead of {@link Promises#failed(Throwable)} to create a * Promise which uses executors other than the default executors. * * @param <T> The value type associated with the returned Promise. * @param failure The failure of the resolved Promise. Must not be * {@code null}. * @return A new Promise that has been resolved with the specified failure. */ public <T> Promise<T> failed(Throwable failure) { return new FailedPromiseImpl<>(failure, this); }