Interface BinaryFunction<T,R>

Type Parameters:
T - the type of the first argument
R - the type of the second argument
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 BinaryFunction<T,R>
A two-argument functional interface that performs an operation and returns no result. Used for field-level operations that may require reflective access.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(T t, R r)
    Applies this function to the given arguments.
  • Method Details

    • apply

      void apply(T t, R r) throws IllegalAccessException
      Applies this function to the given arguments.
      Parameters:
      t - the first argument
      r - the second argument
      Throws:
      IllegalAccessException - if reflective field access is denied