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:
BiFunction<A,B,C>

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

    Modifier and Type
    Method
    Description
    apply(A arg1, B arg2)
    Deprecated.
    since 2.4 use BiFunction instead

    Methods inherited from interface java.util.function.BiFunction

    andThen
  • Method Details

    • 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 BiFunction<A,B,C>
      Parameters:
      arg1 - the first argument
      arg2 - the second argument
      Returns:
      the result, should not be null