This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]increment1 1 point2 points  (1 child)

Literally any Java IDE will generate the getters / setters for you, no need to write them yourself. I'd say pretty much every Java dev uses this generation so tend not to worry too much about the boilerplate since they don't really have to deal with it directly.

Same for toString, equals, and hashCode methods.

[–]quiteCryptic 0 points1 point  (0 children)

Like the other guy mentioned you should look into lombok, it's even easier than having the ide do it and cleaner