Module com.machinezoo.noexception
Interface ThrowingDoubleUnaryOperator
-
- 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 ThrowingDoubleUnaryOperator
Variation ofDoubleUnaryOperatorthat allows throwing checked exceptions.ThrowingDoubleUnaryOperatoris usually implemented by a lambda and passed toCheckedExceptionHandler.fromDoubleUnaryOperator(ThrowingDoubleUnaryOperator). See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doubleapplyAsDouble(double operand)Variation ofDoubleUnaryOperator.applyAsDouble(double)that allows throwing checked exceptions.
-
-
-
Method Detail
-
applyAsDouble
double applyAsDouble(double operand) throws ThrowableVariation ofDoubleUnaryOperator.applyAsDouble(double)that allows throwing checked exceptions.- Parameters:
-
operand- seeDoubleUnaryOperator.applyAsDouble(double) - Returns:
-
see
DoubleUnaryOperator.applyAsDouble(double) - Throws:
-
Throwable- if unable to complete - See Also:
-
CheckedExceptionHandler.fromDoubleUnaryOperator(ThrowingDoubleUnaryOperator),DoubleUnaryOperator.applyAsDouble(double)
-
-