Checks if this RouteLeg object is equal to another object.
true if the objects are equal, false otherwise.
The other object to compare.