equal
deleted
inserted
replaced
30 private String description = null; |
30 private String description = null; |
31 |
31 |
32 public Task(){ |
32 public Task(){ |
33 |
33 |
34 } |
34 } |
|
35 |
|
36 @Override |
|
37 public boolean equals(Object obj) { |
|
38 if (this == obj) |
|
39 return true; |
|
40 if (obj == null) |
|
41 return false; |
|
42 if (!(obj instanceof Task)) |
|
43 return false; |
|
44 final Task other = (Task) obj; |
|
45 return (this.id == other.id || (this.id != null && this.id.equals(other.id))); |
|
46 } |
35 |
47 |
36 public Integer getId() { |
48 public Integer getId() { |
37 return id; |
49 return id; |
38 } |
50 } |
39 |
51 |