equal
deleted
inserted
replaced
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 package java.util.function; |
25 package java.util.function; |
26 |
26 |
27 /** |
27 /** |
28 * An operation on a single {@code double} operand yielding a {@code double} |
28 * An operation on a {@code double} operand yielding a {@code double} |
29 * result. |
29 * result. This is the primitive type specialization of {@link UnaryOperator} |
|
30 * for {@code double}. |
30 * |
31 * |
|
32 * @see UnaryOperator |
31 * @since 1.8 |
33 * @since 1.8 |
32 */ |
34 */ |
33 @FunctionalInterface |
35 @FunctionalInterface |
34 public interface DoubleUnaryOperator { |
36 public interface DoubleUnaryOperator { |
35 |
37 |
38 * {@code double} operand. |
40 * {@code double} operand. |
39 * |
41 * |
40 * @param operand the operand value |
42 * @param operand the operand value |
41 * @return the operation result value |
43 * @return the operation result value |
42 */ |
44 */ |
43 public double operateAsDouble(double operand); |
45 public double applyAsDouble(double operand); |
44 } |
46 } |