Beispiel #1
0
 private int compareStyle(Checklist o) {
   if (!hasStyle()) return o.hasStyle() ? 1 : compareType(o);
   else if (!o.hasStyle()) return -1;
   else {
     int c = checklist.compareTo(o.getChecklist());
     return c != 0 ? c : compareType(o);
   }
 }
Beispiel #2
0
 private int compareType(Checklist o) {
   if (!hasType()) return o.hasType() ? 1 : compareType(o);
   else return !o.hasStyle() ? -1 : checklist.compareTo(o.getChecklist());
 }