Use generated equals() and hashCode().
Remove all trailing whitespace
Another rewrite <3. Ping @modwizcode