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 ofDoubleUnaryOperator
that allows throwing checked exceptions.ThrowingDoubleUnaryOperator
is 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 double
applyAsDouble(double operand)
Variation ofDoubleUnaryOperator.applyAsDouble(double)
that allows throwing checked exceptions.
-
-
-
Method Detail
-
applyAsDouble
double applyAsDouble(double operand) throws Throwable
Variation 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)
-
-