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 ofLongUnaryOperatorthat allows throwing checked exceptions.ThrowingLongUnaryOperatoris 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 longapplyAsLong(long operand)Variation ofLongUnaryOperator.applyAsLong(long)that allows throwing checked exceptions.
-
-
-
Method Detail
-
applyAsLong
long applyAsLong(long operand) throws ThrowableVariation 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)
-
-