Currently, the StateEventWithContentTriggered class does not override equals(), which resorts to object memory addresses when comparing two instances of this class. Data classes automatically generate equals() and hashCode(). This is useful in unit tests, for example, when you want to call assertEquals() on an expected UI state with the actual state returned from the test, and the events are stored as properties within these state classes.
Currently, the
StateEventWithContentTriggered
class does not override equals(), which resorts to object memory addresses when comparing two instances of this class. Data classes automatically generate equals() and hashCode(). This is useful in unit tests, for example, when you want to call assertEquals() on an expected UI state with the actual state returned from the test, and the events are stored as properties within these state classes.