Class IoCheckedBiFunc<X,​Y,​Z>

  • Type Parameters:
    X - Type of input
    Y - Type of input
    Z - Type of output
    All Implemented Interfaces:
    BiFunc<X,​Y,​Z>

    public final class IoCheckedBiFunc<X,​Y,​Z>
    extends Object
    implements BiFunc<X,​Y,​Z>
    Func that doesn't throw checked Exception, but throws IOException instead.

    There is no thread-safety guarantee.

    Since:
    0.13
    • Constructor Detail

      • IoCheckedBiFunc

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

      • apply

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