- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Task task = (Task) o;
if (Id != task.Id) return false;
if (!Number.equals(task.Number)) return false;
if (PlannedStartDate != null ? !PlannedStartDate.equals(task.PlannedStartDate) : task.PlannedStartDate != null)
return false;
if (PlannedEndDate != null ? !PlannedEndDate.equals(task.PlannedEndDate) : task.PlannedEndDate != null)
return false;
if (ActualStartDate != null ? !ActualStartDate.equals(task.ActualStartDate) : task.ActualStartDate != null)
return false;
if (ActualEndDate != null ? !ActualEndDate.equals(task.ActualEndDate) : task.ActualEndDate != null)
return false;
if (!Vin.equals(task.Vin)) return false;
if (Model != null ? !Model.equals(task.Model) : task.Model != null) return false;
if (ModelCode != null ? !ModelCode.equals(task.ModelCode) : task.ModelCode != null)
return false;
if (Brand != null ? !Brand.equals(task.Brand) : task.Brand != null) return false;
if (SurveyPoint != null ? !SurveyPoint.equals(task.SurveyPoint) : task.SurveyPoint != null)
return false;
if (Carrier != null ? !Carrier.equals(task.Carrier) : task.Carrier != null) return false;
return Driver != null ? Driver.equals(task.Driver) : task.Driver == null;
}
guesto 03.09.2016 01:18 # −1
Intellij Idea так делает
Это вообще человекам читать не надо
Xyecoc 03.09.2016 03:03 # −4
guesto 03.09.2016 03:33 # 0
Hanazono-Satoshi 03.09.2016 18:21 # 0
guest 03.09.2016 18:22 # 0
Hanazono-Satoshi 03.09.2016 18:25 # 0
guest 03.09.2016 18:28 # +1
Hanazono-Satoshi 03.09.2016 18:31 # 0