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 ofIntUnaryOperatorthat allows throwing checked exceptions.ThrowingIntUnaryOperatoris 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 intapplyAsInt(int operand)Variation ofIntUnaryOperator.applyAsInt(int)that allows throwing checked exceptions.
-
-
-
Method Detail
-
applyAsInt
int applyAsInt(int operand) throws ThrowableVariation 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)
-
-