Interface ThrowableDoubleUnaryOperator
- All Superinterfaces:
DoubleUnaryOperator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents an operation on a single
double
-valued operand that produces a
double
-valued result. This is the primitive type specialization of ThrowableUnaryOperator
for double
.
Permits checked exceptions unlike DoubleUnaryOperator
This is a functional interface whose functional method is
applyAsDouble(double)
.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault double
applyAsDouble
(double operand) Applies this operator to the given operand.double
applyAsDoubleUnsafe
(double operand) Applies this operator to the given operand.static ThrowableDoubleUnaryOperator
identity()
Returns a unary operator that always returns its input argument.Methods inherited from interface java.util.function.DoubleUnaryOperator
andThen, compose
-
Method Details
-
applyAsDoubleUnsafe
Applies this operator to the given operand.- Parameters:
operand
- the operand- Returns:
- the operator result
- Throws:
Throwable
- occurred during processing
-
applyAsDouble
default double applyAsDouble(double operand) Applies this operator to the given operand.- Specified by:
applyAsDouble
in interfaceDoubleUnaryOperator
- Parameters:
operand
- the operand- Returns:
- the operator result
-
identity
Returns a unary operator that always returns its input argument.- Returns:
- a unary operator that always returns its input argument
-