path.equals(otherPath)
Return true
if the path exactly equals the other path.
The two paths are equal only if every segment of one path exactly equals the corresponding segment of the other path. The function returns true
if segments
arrays of both paths have no elements.