Interface FunctionX<T,R>
- Type Parameters:
T- 参数类型R- 返回值类型
- All Superinterfaces:
Function<T,,R> Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
可序列化的Function
- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
Method Details
-
identity
Returns a function that always returns its input argument.- Type Parameters:
T- the type of the input and output objects to the function- Returns:
- a function that always returns its input argument
-
castingIdentity
casting identity- Type Parameters:
T- param typeR- result type- Returns:
- identity after casting
-
applying
Applies this function to the given argument. -
apply
Applies this function to the given argument.
-