Exemplo n.º 1
0
 public int compareTo(Object o) throws ClassCastException {
   MtourStrings b = (MtourStrings) o;
   if (this.start == null || this.ende == null || b.start == null || b.ende == null) return 0;
   if (EfaUtil.secondDateIsAfterFirst(this.start, b.start)) return -1;
   if (!this.start.equals(b.start)) return 1;
   if (EfaUtil.secondDateIsAfterFirst(this.ende, b.ende)) return -1;
   if (!this.ende.equals(b.ende)) return 1;
   if (this.name == null || b.name == null) return 0;
   return this.name.compareTo(b.name);
 }