如何实现具有多个参数的Java 8的Function?

接受两个参数的函数是BiFunction:

BiFunction<Integer, Integer, Integer> f3 = (x, y) -> x + y;
不接受参数的函数是Supplier:

Supplier<Double> f4 = () -> Math.random();
或相当于:

Supplier<Double> f4 = Math::random;
原文地址:https://www.cnblogs.com/deepalley/p/15680655.html