Package org.cactoos.func
Class IoCheckedFunc<X,Y>
- java.lang.Object
-
- org.cactoos.func.IoCheckedFunc<X,Y>
-
- Type Parameters:
X
- Type of inputY
- Type of output
- All Implemented Interfaces:
Func<X,Y>
public final class IoCheckedFunc<X,Y> extends Object implements Func<X,Y>
Func that doesn't throw checkedException
, but throwsIOException
instead.There is no thread-safety guarantee.
- Since:
- 0.4
-
-
Constructor Summary
Constructors Constructor Description IoCheckedFunc(Func<X,Y> fnc)
Ctor.
-
-
-
Method Detail
-
apply
public Y apply(X input) throws IOException
Description copied from interface:Func
Apply it.- Specified by:
apply
in interfaceFunc<X,Y>
- Parameters:
input
- The argument- Returns:
- The result
- Throws:
IOException
-
-