Interface IOConsumer<T>
-
- Type Parameters:
T
- Type accepted by the function
- 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 IOConsumer<T>
Functional interface similar toConsumer
but allowing anIOException
to be thrown.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(T value)
Perform an operation with the given argument.
-
-
-
Method Detail
-
accept
void accept(T value) throws java.io.IOException
Perform an operation with the given argument.- Parameters:
value
- argument- Throws:
java.io.IOException
- if an I/O error occurs
-
-