Module com.machinezoo.noexception
Interface ThrowingLongToIntFunction
-
- 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 ThrowingLongToIntFunction
Variation ofLongToIntFunction
that allows throwing checked exceptions.ThrowingLongToIntFunction
is usually implemented by a lambda and passed toCheckedExceptionHandler.fromLongToIntFunction(ThrowingLongToIntFunction)
. See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
applyAsInt(long value)
Variation ofLongToIntFunction.applyAsInt(long)
that allows throwing checked exceptions.
-
-
-
Method Detail
-
applyAsInt
int applyAsInt(long value) throws Throwable
Variation ofLongToIntFunction.applyAsInt(long)
that allows throwing checked exceptions.- Parameters:
-
value
- seeLongToIntFunction.applyAsInt(long)
- Returns:
-
see
LongToIntFunction.applyAsInt(long)
- Throws:
-
Throwable
- if unable to complete - See Also:
-
CheckedExceptionHandler.fromLongToIntFunction(ThrowingLongToIntFunction)
,LongToIntFunction.applyAsInt(long)
-
-