Method Reference
say it: “METH-ud REF-er-ens” /ˈmɛθəd ˈrɛfərəns/
A compact lambda form that points to an existing method with ::.
What is Method Reference in Java?
Method Reference — A compact lambda form that points to an existing method with ::.
import java.util.function.Function;
class LabelFormatter {
Function<String, String> uppercase = String::toUpperCase;
}
Level: Freelancer · More Java terms at this level
Updated