1Comparator<Developer> byName =
2 (Developer o1, Developer o2)->o1.getName().compareTo(o2.getName());
1
2 Comparator<Developer> byName = new Comparator<Developer>() {
3 @Override
4 public int compare(Developer o1, Developer o2) {
5 return o1.getName().compareTo(o2.getName());
6 }
7 };
8