Either need to reject nulls in the constructor or support them in `equals` and `hashCode`.