/** * Map the failure of a future to a specific <code>value</code>.<p> * * When this future fails, this <code>value</code> will complete the future returned by this method call.<p> * * When this future succeeds, the result will be propagated to the returned future. * @param value the value that eventually completes the mapped future * @return the mapped future */ public io.vertx.rxjava.core.Future<Boolean> otherwise(Boolean value) { io.vertx.rxjava.core.Future<Boolean> ret = io.vertx.rxjava.core.Future.newInstance(delegate.otherwise(value), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * Map the failure of a future to a specific <code>value</code>.<p> * * When this future fails, this <code>value</code> will complete the future returned by this method call.<p> * * When this future succeeds, the result will be propagated to the returned future. * @param value the value that eventually completes the mapped future * @return the mapped future */ public io.vertx.rxjava.core.Future<Boolean> otherwise(Boolean value) { io.vertx.rxjava.core.Future<Boolean> ret = io.vertx.rxjava.core.Future.newInstance(delegate.otherwise(value), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * Apply a <code>mapper</code> function on this future.<p> * * When this future fails, the <code>mapper</code> will be called with the completed value and this mapper * returns a value. This value will complete the future returned by this method call.<p> * * If the <code>mapper</code> throws an exception, the returned future will be failed with this exception.<p> * * When this future succeeds, the result will be propagated to the returned future and the <code>mapper</code> * will not be called. * @param mapper the mapper function * @return the mapped future */ public io.vertx.rxjava.core.Future<Boolean> otherwise(Function<Throwable, Boolean> mapper) { io.vertx.rxjava.core.Future<Boolean> ret = io.vertx.rxjava.core.Future.newInstance(delegate.otherwise(mapper), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * Apply a <code>mapper</code> function on this future.<p> * * When this future fails, the <code>mapper</code> will be called with the completed value and this mapper * returns a value. This value will complete the future returned by this method call.<p> * * If the <code>mapper</code> throws an exception, the returned future will be failed with this exception.<p> * * When this future succeeds, the result will be propagated to the returned future and the <code>mapper</code> * will not be called. * @param mapper the mapper function * @return the mapped future */ public io.vertx.rxjava.core.Future<Boolean> otherwise(Function<Throwable, Boolean> mapper) { io.vertx.rxjava.core.Future<Boolean> ret = io.vertx.rxjava.core.Future.newInstance(delegate.otherwise(mapper), io.vertx.lang.rx.TypeArg.unknown()); return ret; }