Example #1
0
 private Sender getPublicRelationsSender() {
   for (final Sender sender : Sender.getAvailableSenders()) {
     if (sender.getFromName().equalsIgnoreCase("Gabinete de Comunica��o e Rela��es P�blicas")) {
       return sender;
     }
   }
   return null;
 }
Example #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;
 }