diff -r 2727163b5df5 -r 890a7ed97f6c jdk/src/share/classes/java/util/function/DoubleFunction.java --- a/jdk/src/share/classes/java/util/function/DoubleFunction.java Tue Feb 19 10:34:26 2013 -0800 +++ b/jdk/src/share/classes/java/util/function/DoubleFunction.java Tue Feb 19 11:56:49 2013 -0800 @@ -25,22 +25,23 @@ package java.util.function; /** - * Apply a function to the input object yielding an appropriate {@code double} - * value; this is the {@code double}-bearing specialization for {@link Function}. + * Apply a function to the double-valued input argument, yielding an appropriate + * result. This is the {@code double}-consuming primitive specialization for + * {@link Function}. * - * @param the type of input objects to the function + * @param the type of output objects from the function * + * @see Function * @since 1.8 */ @FunctionalInterface -public interface DoubleFunction { +public interface DoubleFunction { /** - * Apply a function to the input object yielding an appropriate - * {@code double} value. + * Compute the result of applying the function to the input argument * - * @param t the input object - * @return the function result value + * @param value the input value + * @return the function result */ - public double applyAsDouble(T t); + public R apply(double value); }