Перейти к содержимому

How to use Method References - Java 8 Tutorial

Aneesh Mistry

0:00 / 0:00

How to use Method References - Java 8 Tutorial

12 462 просмотра · 4 года назад
Aneesh Mistry
4,05 тыс. подписчиков
12 462 просмотра · 4 года назад
Learn how, and when you can use method references to improve the readability of your Lambda functions. Introduced with Java 8, method references can be used to replace lambda expressions that point to a class method, an instance method, and a class constructor. By understanding how and when method references can be used, you will reduce the boilerplate code written for your lambda expressions. 🕒 Timestamps 🕒 00:00 - Intro 01:50 - Syntax 03:55 - Use case: class method 05:50 - Use case: constructor 07:57 - Use case: instance method 09:20 - Limitations