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

Print this page
rev 6273 : 8004561: Additional functional interfaces, extension methods and name changes
Summary: Adds additional functional interfaces for primitives and "Bi" (two operand). Adds utility extension methods. Includes some name changes for existing functional interfaces per EG decisions.
Reviewed-by: briangoetz

*** 26,35 **** --- 26,38 ---- /** * An operation on a single {@code double} operand yielding a {@code double} * result. * + * <p>This is the primitive type specialization of {@link UnaryOperator} for + * {@code double}. + * * @since 1.8 */ public interface DoubleUnaryOperator { /**
*** 37,43 **** * {@code double} operand. * * @param operand the operand value * @return the operation result value */ ! public double operateAsDouble(double operand); } --- 40,46 ---- * {@code double} operand. * * @param operand the operand value * @return the operation result value */ ! public double applyAsDouble(double operand); }