Module com.machinezoo.noexception
Interface ThrowingObjIntConsumer<T>
-
- Type Parameters:
-
T
- seeObjIntConsumer
- 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 ThrowingObjIntConsumer<T>
Variation ofObjIntConsumer
that allows throwing checked exceptions.ThrowingObjIntConsumer
is usually implemented by a lambda and passed toCheckedExceptionHandler.fromObjIntConsumer(ThrowingObjIntConsumer)
. See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(T t, int value)
Variation ofObjIntConsumer.accept(Object, int)
that allows throwing checked exceptions.
-
-
-
Method Detail
-
accept
void accept(T t, int value) throws Throwable
Variation ofObjIntConsumer.accept(Object, int)
that allows throwing checked exceptions.- Parameters:
-
t
- seeObjIntConsumer.accept(Object, int)
-
value
- seeObjIntConsumer.accept(Object, int)
- Throws:
-
Throwable
- if unable to complete - See Also:
-
CheckedExceptionHandler.fromObjIntConsumer(ThrowingObjIntConsumer)
,ObjIntConsumer.accept(Object, int)
-
-