Package com.liferay.petra.function
Interface UnsafeConsumer<E,T extends Throwable>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionvoidstatic <E> voidaccept(Collection<E> collection, UnsafeConsumer<E, ? super Throwable> unsafeConsumer) static <E,T extends Throwable>
voidaccept(Collection<E> collection, UnsafeConsumer<E, T> unsafeConsumer, Class<? extends T> throwableClass)
-
Method Details
-
accept
static <E> void accept(Collection<E> collection, UnsafeConsumer<E, ? super Throwable> unsafeConsumer) throws Throwable- Throws:
Throwable
-
accept
static <E,T extends Throwable> void accept(Collection<E> collection, UnsafeConsumer<E, T> unsafeConsumer, Class<? extends T> throwableClass) throws T- Throws:
T
-
accept
- Throws:
T
-