Interface ThrowableDoubleUnaryOperator
-
- All Superinterfaces:
java.util.function.DoubleUnaryOperator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ThrowableDoubleUnaryOperator extends java.util.function.DoubleUnaryOperatorRepresents an operation on a singledouble-valued operand that produces adouble-valued result. This is the primitive type specialization ofThrowableUnaryOperatorfordouble.Permits checked exceptions unlike
DoubleUnaryOperatorThis is a functional interface whose functional method is
applyAsDouble(double).- See Also:
ThrowableUnaryOperator
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default 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.
-
-
-
Method Detail
-
applyAsDoubleUnsafe
double applyAsDoubleUnsafe(double operand) throws java.lang.ThrowableApplies this operator to the given operand.- Parameters:
operand- the operand- Returns:
- the operator result
- Throws:
java.lang.Throwable- occurred during processing
-
applyAsDouble
default double applyAsDouble(double operand)
Applies this operator to the given operand.- Specified by:
applyAsDoublein interfacejava.util.function.DoubleUnaryOperator- Parameters:
operand- the operand- Returns:
- the operator result
-
identity
static ThrowableDoubleUnaryOperator identity()
Returns a unary operator that always returns its input argument.- Returns:
- a unary operator that always returns its input argument
-
-