Skip to content

Glossary: Algorithms Beyond the Basics in Java

method reference

Also written: Integer::sum, Batch::readyBy, Road::minutes

A short way to pass an existing method where a lambda is expected, such as `Road::minutes` or `Integer::sum`.

Where the book teaches it

Related terms

lambdaComparator.comparingInt