Update RankableObjectWithFields.java

The equals method is compare to a attribute of itself.
I think it's a mistake.