methodreference

noun
UK /ˈmeθ.əd ˈref.ər.əns/
US /ˈmeθ.əd ˈref.ɚ.əns/

A method reference is a short way to point at a piece of code so you can use it later without writing it all out again.

Instead of writing a whole lambda, she used a method reference to pass the print function.


OTHER MEANINGS

2. In Java, a compact syntax like ClassName::methodName that refers to an existing method.

The code used String::toUpperCase as a method reference in the stream.

3. A note in a document that points to a specific procedure described elsewhere.

The lab report included a method reference to the standard testing protocol.

4. A citation in academic writing that names the research method used by another study.

Her paper gave a method reference to the survey design from the 2019 study.