- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A
ObjIntConsumer that allows for checked exceptions.- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms this operation on the given arguments.static <T> ObjIntConsumer<T>sneaky(CheckedObjIntConsumer<T> consumer) static <T> ObjIntConsumer<T>unchecked(CheckedObjIntConsumer<T> consumer) static <T> ObjIntConsumer<T>unchecked(CheckedObjIntConsumer<T> consumer, Consumer<Throwable> handler)
-
Method Details
-
accept
Performs this operation on the given arguments.- Parameters:
t- the first input argumentvalue- the second input argument- Throws:
Throwable
-
sneaky
-
unchecked
-
unchecked
static <T> ObjIntConsumer<T> unchecked(CheckedObjIntConsumer<T> consumer, Consumer<Throwable> handler)
-