No, but for many such “constant” functions it’s easy to write your own lambda expression. In fact, one can write x -> x instead of Function.identity() and in some cases it’s clearer. Here is a list of common constant functions and how they can be written using lambda.

Predicate that always returns true or false:

[…]