Class UncheckedBiFunc<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 UncheckedBiFunc<X,​Y,​Z>
    extends Object
    implements BiFunc<X,​Y,​Z>
    BiFunc that doesn't throw checked Exception.

    There is no thread-safety guarantee.

    Since:
    0.13
    • Constructor Detail

      • UncheckedBiFunc

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

      • apply

        public Z apply​(X first,
                       Y second)
        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