`instanceof Entry` isn't sufficient here; it mishandles the case where `thatObj` is of some subclass of `Entry` and `this` is not, and vice versa.