Robert

47%
Flag icon
a comparator construction method is used in place of a lambda (Items 14. 43): Click here to view code image Collections.sort(words, comparingInt(String::length)
Robert
'comparingInt' is strange as a factory method name, to me. It's questionable that it falls into any of the example factory name styles listed in Item 1.
Effective Java
Rate this book
Clear rating
Open Preview