Ejemplo n.º 1
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (!(obj instanceof ToDoTask)) return false;
   final ToDoBean other = (ToDoBean) obj;
   if (other.getOwner().equals(this.getOwner())
       && other.getRealizer().equals(this.getRealizer())
       && other.getTitle().equals(this.getTitle())
       && other.getDescription().equals(this.getDescription())
       && other.getStatus().equals(this.getStatus())) {
     return true;
   } else {
     return false;
   }
 }
Ejemplo n.º 2
0
 @Override
 public int compareTo(ToDoBean arg0) {
   ToDoBean tdb = (ToDoBean) arg0;
   return getDeadline().compareTo(tdb.getDeadline());
 }