Refresh the Code style and add custom hashCode and equal methods.