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 ofLongToIntFunctionthat allows throwing checked exceptions.ThrowingLongToIntFunctionis 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 intapplyAsInt(long value)Variation ofLongToIntFunction.applyAsInt(long)that allows throwing checked exceptions.
-
-
-
Method Detail
-
applyAsInt
int applyAsInt(long value) throws ThrowableVariation 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)
-
-