Esempio n. 1
0
 @Override
 public int compare(PhdProgramFocusArea o1, PhdProgramFocusArea o2) {
   int result = o1.getName().compareTo(o2.getName());
   return (result != 0) ? result : DomainObjectUtil.COMPARATOR_BY_ID.compare(o1, o2);
 }
Esempio n. 2
0
 @Override
 public int compare(final Sender sender1, final Sender sender2) {
   final int c = sender1.getFromName().compareTo(sender2.getFromName());
   return c == 0 ? DomainObjectUtil.COMPARATOR_BY_ID.compare(sender1, sender2) : c;
 }