Skip to content

feat: add ValueEqualityCollection<T> - #11

Merged
Ronto4 merged 1 commit into
masterfrom
feat/value-equality-collection
Jul 8, 2025
Merged

feat: add ValueEqualityCollection<T>#11
Ronto4 merged 1 commit into
masterfrom
feat/value-equality-collection

Conversation

@Ronto4

@Ronto4 Ronto4 commented May 1, 2025

Copy link
Copy Markdown
Owner

This is a collection (implements ICollection<T>) that uses equality of its elements for comparing it against other instances.

Ronto4 added a commit to Ronto4/TransitUI that referenced this pull request Jul 6, 2025
However, connections are broken:
1. Whenever there are mutlitple trips combining into running on all related days,
   they are not found as they do not pass the equality check on having identical
   DaysOfOperation, leaving the `Single` call without matching elements.
2. Having two trips on different days on the same route and time with different
   connections works in the existing system. However, when collapsing trips
   to fix point 1 those two would be collapsed as well, breaking everything.
3. Grouping by all the stuff except for DaysOfOperation currently does not work
   as value equality collections have not yet been implemented.

Conclusion: Value equality collections (Ronto4/R4Utils#11)
need to be incorporated first. Then, grouping can be applied, solving this issue
at its root. With some luck this might even make timetable views easier as some
steps of collapsing will already have happened.

[skip ci]
@Ronto4
Ronto4 force-pushed the feat/value-equality-collection branch from bb724fa to c52ca1d Compare July 8, 2025 21:24
This is a collection (implements `ICollection<T>`) that uses equality of its elements for comparing it against other instances.
@Ronto4
Ronto4 force-pushed the feat/value-equality-collection branch from c52ca1d to a3f7f9b Compare July 8, 2025 21:34
@Ronto4
Ronto4 marked this pull request as ready for review July 8, 2025 21:35
@Ronto4
Ronto4 merged commit 9aa6535 into master Jul 8, 2025
4 checks passed
@Ronto4
Ronto4 deleted the feat/value-equality-collection branch July 8, 2025 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant