Module com.machinezoo.noexception
Interface ThrowingIntUnaryOperator
-
- 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 ThrowingIntUnaryOperator
Variation ofIntUnaryOperator
that allows throwing checked exceptions.ThrowingIntUnaryOperator
is usually implemented by a lambda and passed toCheckedExceptionHandler.fromIntUnaryOperator(ThrowingIntUnaryOperator)
. See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
applyAsInt(int operand)
Variation ofIntUnaryOperator.applyAsInt(int)
that allows throwing checked exceptions.
-
-
-
Method Detail
-
applyAsInt
int applyAsInt(int operand) throws Throwable
Variation ofIntUnaryOperator.applyAsInt(int)
that allows throwing checked exceptions.- Parameters:
-
operand
- seeIntUnaryOperator.applyAsInt(int)
- Returns:
-
see
IntUnaryOperator.applyAsInt(int)
- Throws:
-
Throwable
- if unable to complete - See Also:
-
CheckedExceptionHandler.fromIntUnaryOperator(ThrowingIntUnaryOperator)
,IntUnaryOperator.applyAsInt(int)
-
-