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 ofIntConsumer
that allows throwing checked exceptions.ThrowingIntConsumer
is 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 void
accept(int value)
Variation ofIntConsumer.accept(int)
that allows throwing checked exceptions.
-
-
-
Method Detail
-
accept
void accept(int value) throws Throwable
Variation 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)
-
-