Skip to content

Implement equals() / hashcode() for Address #3

@belaban

Description

@belaban

Protobuf generates code for equals() and hashcode() which compares all fields. This is not needed, or even incorrect: for example, name in Address is not needed and can even be empty.

Implement equals() and hashcode() for Address. They can then be used as Comparator for hashmaps/sets etc.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions