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