Refactoring: The addition of getSegmentName voids the need for a hash code getter.
We might as well compare the strings.
Using segment name instead of hash code to group routes.