We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BinaryOperator继承自BiFunction,但是按ttl现在提供的wrappers,貌似怎么写都不对,请教一下这个要怎么写
The text was updated successfully, but these errors were encountered:
@Bughue
wrapBiFunction()
wrap
TtlWrappers
BinaryOperator
wrapBiFunction
wrapBinaryOperator
下面是一些写法示例:
// 显式写上参数类型 TtlWrappers.wrapBiFunction((Integer x1, Integer x2) -> x1 + x2); TtlWrappers.wrapBiFunction((Integer x1, Integer x2) -> { int sum = x1 + x2; return sum * 42; }); BinaryOperator<Integer> f0 = (x1, x2) -> x1 + x2; BiFunction<Integer, Integer, Integer> w0 = TtlWrappers.wrapBiFunction(f0); BiFunction<Integer, Integer, Integer> w1 = TtlWrappers.wrapBiFunction((x1, x2) -> x1 + x2); BiFunction<Integer, Integer, Integer> w2 = TtlWrappers.wrapBiFunction(Integer::sum); BiFunction<Integer, Integer, Integer> f3 = (x1, x2) -> x1 + x2; BiFunction<Integer, Integer, Integer> w3 = TtlWrappers.wrapBiFunction(f3);
PS: 上面这些是Java写法(Lambda语法)的区别。
Java
Lambda
Sorry, something went wrong.
oldratlee
No branches or pull requests
BinaryOperator继承自BiFunction,但是按ttl现在提供的wrappers,貌似怎么写都不对,请教一下这个要怎么写
The text was updated successfully, but these errors were encountered: