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 doubleapplyAsDouble(double operand) Applies this operator to the given operand.doubleapplyAsDoubleUnsafe(double operand) Applies this operator to the given operand.static ThrowableDoubleUnaryOperatoridentity()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:
applyAsDoublein 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
-