-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed as not planned
Labels
!ImprovementA functional improvement or micro featureA functional improvement or micro featureStaleThis issue is stale, no activity for 90 days. Remove stale label or comment within 30 days.This issue is stale, no activity for 90 days. Remove stale label or comment within 30 days.
Description
We are currently representing feed ids as String feedId and these strings are passed around and used to create FeedScopedIds. I propose to instead add a specific type Feed to use instead of using strings. This Feed will act as a factory for FeedScopedId. This would give us a bit of type safety and get better control of how FeedScopedIds are created.
See PR #6516 for an illustration of what this could look like.
Before:
void doSomething(String feedId, ...) {
...
var id = new FeedScopedId(feedId, netexId);
...
}
After:
void doSomething(Feed feed, ...) {
...
var id = feed.scopedId(netexId);
...
}
What do people think about this?
Metadata
Metadata
Assignees
Labels
!ImprovementA functional improvement or micro featureA functional improvement or micro featureStaleThis issue is stale, no activity for 90 days. Remove stale label or comment within 30 days.This issue is stale, no activity for 90 days. Remove stale label or comment within 30 days.