Java's Comparator.comparing() method explained (includes both lambda/ method reference explanation)

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Thank you for breaking this down! I finally got a grasp of what happens internally inside the comparing method. I see that it returns " return (Comparator<T> & Serializable)", what does the & symbol do, the expectation is to return a Comparator<T> ?

kartech