Package com.android.builder.utils
Interface ExceptionConsumer<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Consumer that can throw an
Exception.-
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms an operation on the given input.static <T> Consumer<T>asConsumer(ExceptionConsumer<T> exceptionConsumer)
-
Method Details
-
accept
Performs an operation on the given input.- Parameters:
input- the input- Throws:
Exception
-
asConsumer
- Parameters:
exceptionConsumer- the consumer that can throw an exception
-