/** * Returns a new function that composes this function and the specified function. * <p> * This returns a composed function that applies the input to this function * and then converts the result using the specified function. * * @param <V> the result type of second function * @param other the second function * @return the combined function, "this AND_THEN that" * @throws NullPointerException if the other function is null */ public default <V> ObjLongFunction<T, V> andThen(Function<? super R, ? extends V> other) { Objects.requireNonNull(other); return (obj, value) -> other.apply(apply(obj, value)); }