You just wrote the signature of a method that returns a
BiFunction
. What doubts do you have about it? You're asking whether it is a good way of doing what, exactly?