FORGE-995 Modified the equals and hashcode generator.

This is an API breaking change due to the introduction of a new parameter in the method.