Class IoCheckedFunc<X,​Y>

  • Type Parameters:
    X - Type of input
    Y - 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 checked Exception, but throws IOException instead.

    There is no thread-safety guarantee.

    Since:
    0.4
    • Constructor Detail

      • IoCheckedFunc

        public IoCheckedFunc​(Func<X,​Y> fnc)
        Ctor.
        Parameters:
        fnc - Encapsulated func
    • Method Detail

      • apply

        public Y apply​(X input)
                throws IOException
        Description copied from interface: Func
        Apply it.
        Specified by:
        apply in interface Func<X,​Y>
        Parameters:
        input - The argument
        Returns:
        The result
        Throws:
        IOException