|
|
|
|
@ -177,7 +177,7 @@ public class TrainSchedule {
|
|
|
|
|
} |
|
|
|
|
@Override |
|
|
|
|
public int hashCode() { |
|
|
|
|
log.info("startdate:{}", startDate.getTime()); |
|
|
|
|
// log.info("startdate:{}", startDate.getTime());
|
|
|
|
|
final int prime = 31; |
|
|
|
|
int result = 1; |
|
|
|
|
result = prime * result + ((atocCode == null) ? 0 : atocCode.hashCode()); |
|
|
|
|
@ -191,7 +191,7 @@ public class TrainSchedule {
|
|
|
|
|
result = prime * result + ((powerType == null) ? 0 : powerType.hashCode()); |
|
|
|
|
result = prime * result + ((reservation == null) ? 0 : reservation.hashCode()); |
|
|
|
|
result = prime * result + ((rsid == null) ? 0 : rsid.hashCode()); |
|
|
|
|
result = prime * result + ((scheduleType == null) ? 0 : scheduleType.hashCode()); |
|
|
|
|
result = prime * result + ((scheduleType == null) ? 0 : scheduleType.name().hashCode()); |
|
|
|
|
result = prime * result + ((section == null) ? 0 : section.hashCode()); |
|
|
|
|
result = prime * result + ((signalId == null) ? 0 : signalId.hashCode()); |
|
|
|
|
result = prime * result + ((sleeper == null) ? 0 : sleeper.hashCode()); |
|
|
|
|
@ -202,7 +202,7 @@ public class TrainSchedule {
|
|
|
|
|
result = prime * result + ((trainUId == null) ? 0 : trainUId.hashCode()); |
|
|
|
|
result = prime * result + ((uicCode == null) ? 0 : uicCode.hashCode()); |
|
|
|
|
for(TrainScheduleLocation tsl:locations) { |
|
|
|
|
log.atDebug().log("TIPLOC: {}, hash: {}//{}", tsl.getTiplocCode(), Integer.toHexString(tsl.hashCode()), Integer.toHexString(tsl.getTiplocCode().hashCode())); |
|
|
|
|
// log.atDebug().log("TIPLOC: {}, hash: {}//{}", tsl.getTiplocCode(), Integer.toHexString(tsl.hashCode()), Integer.toHexString(tsl.getTiplocCode().hashCode()));
|
|
|
|
|
result = prime * result + tsl.hashCode(); |
|
|
|
|
} |
|
|
|
|
return result; |
|
|
|
|
|