libgdx/libgdx — pull request #824 by MobiDevelop (2013-10-11 13:18:36+00:00)
Title: Override equals and hashCode on FileHandle

I wanted to start a discussion around this commit, since I'm not sure we necessarily want to make this change.

Today, one cannot use `fileHandle.equals(otherFileHandle)` to determine if the two FIleHandle instances refer to the same file. While this is easy to get around by comparing the type and the path separately, this doesn't work in cases where one does not have control over the comparison (such as in a Collection#contains call).

I don't think this would cause problems for folks, but since I can't foresee every use case, I figured it best to discuss.

Thoughts?