Interface IOFunction<T,R>
- Type Parameters:
T
- Type accepted by the functionR
- Type returned 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.
Functional interface similar to
Function
but allowing an
IOException
to be thrown.-
Method Summary
-
Method Details
-
apply
Apply the function and get a result.- Parameters:
t
- function argument- Returns:
- function result
- Throws:
IOException
- if an I/O error occurs
-