You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: application/src/main/java/org/opentripplanner/routing/algorithm/raptoradapter/transit/TripPatternForDate.java
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -158,16 +158,18 @@ public int compareTo(TripPatternForDate other) {
158
158
returnserviceDate.compareTo(other.serviceDate);
159
159
}
160
160
161
+
/**
162
+
* The natural key of a TripPatternForDate is the pair (routing trip pattern id, service date).
163
+
*/
161
164
@Override
162
165
publicinthashCode() {
163
-
returnObjects.hash(
164
-
tripPattern,
165
-
serviceDate,
166
-
Arrays.hashCode(tripTimes),
167
-
Arrays.hashCode(frequencies)
168
-
);
166
+
returnObjects.hash(tripPattern, serviceDate);
169
167
}
170
168
169
+
/**
170
+
* The natural key of a TripPatternForDate is the pair (routing trip pattern id, service date).
171
+
* TODO: align equals and hashcode to use only the pair (routing trip pattern id, service date)
0 commit comments