Interface IntFunction2<R>

Type Parameters:
R - the result type
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface IntFunction2<R>
A function that takes two ints as input and produces a R result.

This is the int-consuming primitive specialization for BiFunction.

Since:
4.0.0
  • Method Summary

    Modifier and Type Method Description
    R apply​(int first, int second)
    Evaluates this predicate on the given arguments.
  • Method Details

    • apply

      R apply​(int first, int second)
      Evaluates this predicate on the given arguments.
      Parameters:
      first - the first input argument
      second - the second input argument
      Returns:
      a result
      Since:
      4.0.0