Fundamentals

Default Methods

Collections

Idioms and Techniques

Design Rationale

Advanced Questions

Are there other “constant” lambdas like Function.identity()?

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:

[…]