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 ofIntToLongFunction
that allows throwing checked exceptions.ThrowingIntToLongFunction
is 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 long
applyAsLong(int value)
Variation ofIntToLongFunction.applyAsLong(int)
that allows throwing checked exceptions.
-
-
-
Method Detail
-
applyAsLong
long applyAsLong(int value) throws Throwable
Variation 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)
-
-