Ignoring the equals() and hashcode() methods while performing object comparison