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