/** * Create a new Callback which transforms its items according to a {@link Function} * and then invokes the original callback. */ public static <A, B> Callback<A> transform(Callback<? super B> callback, Function<? super A, ? extends B> transformer) { return new TransformedCallback<A, B>(callback, transformer); }