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