Implement hashcode and equals
Merge pull request #937 from erwinwinder/master

Implement hashcode and equals