The default impl for hashCode and equals should be fine - I don't think you need your own here.