/** * Creates {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. * * @return {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. */ public static <A, B> CompletionHandler<B> toAdaptedCompletionHandler( final FutureImpl<A> future, final GenericAdapter<B, A> adapter) { return toAdaptedCompletionHandler(future, null, adapter); }
/** * Creates {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. * * @return {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. */ public static <A, B> CompletionHandler<B> toAdaptedCompletionHandler( final FutureImpl<A> future, final GenericAdapter<B, A> adapter) { return toAdaptedCompletionHandler(future, null, adapter); }
/** * Creates {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. * * @return {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. */ public static <A, B> CompletionHandler<B> toAdaptedCompletionHandler( final FutureImpl<A> future, final GenericAdapter<B, A> adapter) { return toAdaptedCompletionHandler(future, null, adapter); }
/** * Creates {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. * * @return {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. */ public static <A, B> CompletionHandler<B> toAdaptedCompletionHandler( final FutureImpl<A> future, final GenericAdapter<B, A> adapter) { return toAdaptedCompletionHandler(future, null, adapter); }
/** * Creates {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. * * @return {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. */ public static <A, B> CompletionHandler<B> toAdaptedCompletionHandler( final FutureImpl<A> future, final GenericAdapter<B, A> adapter) { return toAdaptedCompletionHandler(future, null, adapter); }
/** * Creates {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. * * @return {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. */ public static <A, B> CompletionHandler<B> toAdaptedCompletionHandler( final FutureImpl<A> future, final GenericAdapter<B, A> adapter) { return toAdaptedCompletionHandler(future, null, adapter); }
/** * Creates {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. * * @return {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. */ public static <A, B> CompletionHandler<B> toAdaptedCompletionHandler( final FutureImpl<A> future, final GenericAdapter<B, A> adapter) { return toAdaptedCompletionHandler(future, null, adapter); }
/** * Creates {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. * * @return {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. */ public static <A, B> CompletionHandler<B> toAdaptedCompletionHandler( final FutureImpl<A> future, final GenericAdapter<B, A> adapter) { return toAdaptedCompletionHandler(future, null, adapter); }
/** * Creates {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. * * @return {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. */ public static <A, B> CompletionHandler<B> toAdaptedCompletionHandler( final FutureImpl<A> future, final GenericAdapter<B, A> adapter) { return toAdaptedCompletionHandler(future, null, adapter); }
/** * Creates {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. * * @return {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. */ public static <A, B> CompletionHandler<B> toAdaptedCompletionHandler( final FutureImpl<A> future, final GenericAdapter<B, A> adapter) { return toAdaptedCompletionHandler(future, null, adapter); }
/** * Creates {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. * * @return {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. */ public static <A, B> CompletionHandler<B> toAdaptedCompletionHandler( final FutureImpl<A> future, final GenericAdapter<B, A> adapter) { return toAdaptedCompletionHandler(future, null, adapter); }
/** * Creates {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. * * @return {@link CompletionHandler}, which may serve as a bridge * for passed {@link FutureImpl}. All the notifications coming to the returned * {@link CompletionHandler} will be <tt>adapted</tt> using * {@link GenericAdapter} and passed to the {@link FutureImpl}. */ public static <A, B> CompletionHandler<B> toAdaptedCompletionHandler( final FutureImpl<A> future, final GenericAdapter<B, A> adapter) { return toAdaptedCompletionHandler(future, null, adapter); }