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