Interface CheckedConsumer1<T1,E extends java.lang.Throwable>
-
- All Superinterfaces:
java.util.function.Consumer<T1>
- 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 CheckedConsumer1<T1,E extends java.lang.Throwable> extends java.util.function.Consumer<T1>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidaccept(T1 t)default <E1 extends java.lang.Throwable>
CheckedConsumer1<T1,E1>andThen(CheckedConsumer1<? super T1,E1> after)voidcheckedAccept(T1 t)static <T1,E extends java.lang.Throwable>
CheckedConsumer1<T1,E>of(CheckedConsumer1<T1,E> consumer)
-
-
-
Method Detail
-
checkedAccept
void checkedAccept(T1 t) throws E extends java.lang.Throwable
- Throws:
E extends java.lang.Throwable
-
andThen
default <E1 extends java.lang.Throwable> CheckedConsumer1<T1,E1> andThen(CheckedConsumer1<? super T1,E1> after)
-
of
static <T1,E extends java.lang.Throwable> CheckedConsumer1<T1,E> of(CheckedConsumer1<T1,E> consumer)
-
-