Module com.machinezoo.noexception
Interface ThrowingIntToLongFunction
-
- 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 ThrowingIntToLongFunction
Variation ofIntToLongFunctionthat allows throwing checked exceptions.ThrowingIntToLongFunctionis usually implemented by a lambda and passed toCheckedExceptionHandler.fromIntToLongFunction(ThrowingIntToLongFunction). See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longapplyAsLong(int value)Variation ofIntToLongFunction.applyAsLong(int)that allows throwing checked exceptions.
-
-
-
Method Detail
-
applyAsLong
long applyAsLong(int value) throws ThrowableVariation ofIntToLongFunction.applyAsLong(int)that allows throwing checked exceptions.- Parameters:
-
value- seeIntToLongFunction.applyAsLong(int) - Returns:
-
see
IntToLongFunction.applyAsLong(int) - Throws:
-
Throwable- if unable to complete - See Also:
-
CheckedExceptionHandler.fromIntToLongFunction(ThrowingIntToLongFunction),IntToLongFunction.applyAsLong(int)
-
-