[cleanup] Make equals and hashcode final