Example #1
0
 protected int compareDocuments(Document document1, Document document2) {
   return document1.getArchivedDatetime().compareTo(document2.getArchivedDatetime());
 }
Example #2
0
 protected int compareDocuments(Document document1, Document document2) {
   return document1
       .getPublicationEndDatetime()
       .compareTo(document2.getPublicationEndDatetime());
 }
Example #3
0
 protected int compareDocuments(Document d1, Document d2) {
   return d1.getHeadline().compareToIgnoreCase(d2.getHeadline());
 }
Example #4
0
 protected int compareDocuments(Document d1, Document d2) {
   return d1.getModifiedDatetime().compareTo(d2.getModifiedDatetime());
 }
Example #5
0
 protected int compareDocuments(Document d1, Document d2) {
   return d1.getId() - d2.getId();
 }