Package io.openems.common.function
Interface ThrowingConsumer<T,E extends java.lang.Exception>
-
- Type Parameters:
T
- the accept methods argument typeE
- the exception type
- 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 ThrowingConsumer<T,E extends java.lang.Exception>
This interface is similar to the java.util interfaceConsumer
. Difference is, that it allows the accept() method to throw a definedException
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(T t)
Performs this operation on the given argument.
-