Interface Function2<A,​B,​C>

  • Type Parameters:
    A - the type of the first argument accepted
    B - the type of the result
    C - the type of the result of application
    All Superinterfaces:
    java.util.function.BiFunction<A,​B,​C>

    @Deprecated
    public interface Function2<A,​B,​C>
    extends java.util.function.BiFunction<A,​B,​C>
    Deprecated.
    since 2.4 use BiFunction instead
    Represents a function that takes two parameters.
    Since:
    1.0
    • Method Detail

      • apply

        @Deprecated
        C apply​(A arg1,
                B arg2)
        Deprecated.
        since 2.4 use BiFunction instead
        Returns the results of applying this function to the supplied arguments. Like Guava's Function, this method is generally expected, but not absolutely required, to have the following properties: * it's execution does not cause any observable side effect * the computation is consistent with equals; that is, Objects.equal(a, b) implies that Objects.equal(function.apply(a), function.apply(b)).
        Specified by:
        apply in interface java.util.function.BiFunction<A,​B,​C>
        Parameters:
        arg1 - the first argument
        arg2 - the second argument
        Returns:
        the result, should not be null