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 ofIntSupplierthat allows throwing checked exceptions.ThrowingIntSupplieris 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 intgetAsInt()Variation ofIntSupplier.getAsInt()that allows throwing checked exceptions.
-
-
-
Method Detail
-
getAsInt
int getAsInt() throws ThrowableVariation ofIntSupplier.getAsInt()that allows throwing checked exceptions.- Returns:
-
see
IntSupplier.getAsInt() - Throws:
-
Throwable- if unable to complete - See Also:
-
CheckedExceptionHandler.fromIntSupplier(ThrowingIntSupplier),IntSupplier.getAsInt()
-
-