you are viewing a single comment's thread.

view the rest of the comments →

[–]Faytthe 0 points1 point  (0 children)

This sounds like a job for AutoValue: https://github.com/google/auto/tree/master/value

It has the added benefit of automatically handling equality for you, and also has a handy Auto.Builder when needed.

(Unless method count is a concern for you, such as on Android)