Interface QuadFunction<A,B,C,D,R>

Type Parameters:
A - first argument type - 第一个参数类型
B - second argument type - 第二个参数类型
C - third argument type - 第三个参数类型
D - fourth argument type - 第四个参数类型
R - return 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 QuadFunction<A,B,C,D,R>
Four-argument function interface 四元函数接口

Represents a function that accepts four arguments and produces a result.

表示接受四个参数并产生结果的函数。

Usage Examples | 使用示例:

QuadFunction<String, String, Integer, Boolean, String> format =
    (first, last, age, active) -> first + " " + last + "(" + age + ", " + active + ")";
String result = format.apply("Alice", "Smith", 30, true);
Since:
JDK 25, opencode-base-core V1.0.0
Author:
Leon Soo www.LeonSoo.com
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(A a, B b, C c, D d)
    Applies this function to the given arguments.
  • Method Details

    • apply

      R apply(A a, B b, C c, D d)
      Applies this function to the given arguments. 将此函数应用于给定的参数。
      Parameters:
      a - the first argument - 第一个参数
      b - the second argument - 第二个参数
      c - the third argument - 第三个参数
      d - the fourth argument - 第四个参数
      Returns:
      the function result - 函数结果