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