Module com.machinezoo.noexception
Interface ThrowingIntConsumer
-
- 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 ThrowingIntConsumer
Variation ofIntConsumerthat allows throwing checked exceptions.ThrowingIntConsumeris usually implemented by a lambda and passed toCheckedExceptionHandler.fromIntConsumer(ThrowingIntConsumer). See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(int value)Variation ofIntConsumer.accept(int)that allows throwing checked exceptions.
-
-
-
Method Detail
-
accept
void accept(int value) throws ThrowableVariation ofIntConsumer.accept(int)that allows throwing checked exceptions.- Parameters:
-
value- seeIntConsumer.accept(int) - Throws:
-
Throwable- if unable to complete - See Also:
-
CheckedExceptionHandler.fromIntConsumer(ThrowingIntConsumer),IntConsumer.accept(int)
-
-