Adding hashCode where using equals - warnings reduction