@FunctionalInterface public interface ThrowingIntUnaryOperator
IntUnaryOperator
that allows throwing checked exceptions. ThrowingIntUnaryOperator
is usually implemented by a lambda and passed to CheckedExceptionHandler.fromIntUnaryOperator(ThrowingIntUnaryOperator)
. See noexception tutorial.
Modifier and Type | Method and Description |
---|---|
int |
applyAsInt(int operand)
Variation of IntUnaryOperator.applyAsInt(int) that allows throwing checked exceptions.
|
int applyAsInt(int operand) throws Throwable
IntUnaryOperator.applyAsInt(int)
that allows throwing checked exceptions.
operand
- see IntUnaryOperator.applyAsInt(int)
IntUnaryOperator.applyAsInt(int)
Throwable
- if unable to complete
CheckedExceptionHandler.fromIntUnaryOperator(ThrowingIntUnaryOperator)
, IntUnaryOperator.applyAsInt(int)
Copyright © 2017–2020 Robert Važan. All rights reserved.