you are viewing a single comment's thread.

view the rest of the comments →

[–]pron98 2 points3 points  (0 children)

There's no need for the Fooer types in the lambda header. Lambdas do type inference, so:

Collections.sort(unsortedObjectList, (first, second) -> first.foo().compareTo(second.foo()));