src/share/classes/java/util/function/ToDoubleBiFunction.java

Print this page
rev 7675 : 8019840: Spec updates for java.util.function
Reviewed-by: mduigou
Contributed-by: brian.goetz@oracle.com

*** 23,50 **** * questions. */ package java.util.function; /** ! * Apply a function to the input arguments, yielding an appropriate result. ! * This is the {@code double}-bearing specialization for {@link BiFunction}. * ! * @param <T> the type of the first argument to the {@code applyAsDouble} ! * operation. ! * @param <U> the type of the second argument to the {@code applyAsDouble} ! * operation. * * @see BiFunction * @since 1.8 */ @FunctionalInterface public interface ToDoubleBiFunction<T, U> { /** ! * Compute the result of applying the function to the input arguments * ! * @param t an input object ! * @param u an input object ! * @return the function result value */ double applyAsDouble(T t, U u); } --- 23,52 ---- * questions. */ package java.util.function; /** ! * Represents a function that accepts two arguments and produces a double-valued ! * result. This is the {@code double}-producing primitive specialization for ! * {@link BiFunction}. * ! * <p>This is a <a href="package-summary.html">functional interface</a> ! * whose functional method is {@link #applyAsDouble(Object, Object)}. ! * ! * @param <T> the type of the first argument to the function ! * @param <U> the type of the second argument to the function * * @see BiFunction * @since 1.8 */ @FunctionalInterface public interface ToDoubleBiFunction<T, U> { /** ! * Applies this function to the given arguments. * ! * @param t the first function argument ! * @param u the second function argument ! * @return the function result */ double applyAsDouble(T t, U u); }