Java Functional Programming — Part 10
Diving into comparing() and thenComparing() methods
In the previous article, we have seen the interface Comparable
and Comparable
and their corresponding lambda expressions. And we also touched upon two methods from Comparator
interface:comparing()
and thenComparing()
. These two methods allow us to program in a more declarative way.