예제 #1
0
 @Override
 public int compare(Hymn a, Hymn b) {
   return (int) (a.getId() - b.getId());
 }
예제 #2
0
 @Override
 public int compare(Hymn a, Hymn b) {
   return a.getAuthor().compareTo(b.getAuthor());
 }
예제 #3
0
 @Override
 public int compare(Hymn a, Hymn b) {
   return a.getTitle().compareTo(b.getTitle());
 }