Joined June 2012
·
Posted to
Easy, Simple Java Classes ( like Scala case classes, sort of)
over 1 year
ago
The benefit is that you dont have to implement hashCode, equals or toString for new classes, which is one of the (many) reasons java is more verbose than other languages.
Achievements
130 Karma
6,676 Total ProTip Views
Forked
Have a project valued enough to be forked by someone else
Platypus 3
Have at least three original repo where scala is the dominant language
Altruist
Increase developer well-being by sharing at least 20 open source projects
Platypus
Have at least one original repo where scala is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Narwhal
Have at least one original repo where Clojure is the dominant language
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
Komodo Dragon 3
Have at least three original repos where Java is the dominant language
Komodo Dragon
Have at least one original repo where Java is the dominant language
Hi Rascio,
You dont say why you dont like it so not sure how to respond to that. I looked at project lombok and indeed its a terser way of achieving the same effect (thought its scope its larger than this simple trick). The benefit of the approach above is that it is dead simple and under your control, plus you have one less jar dependency to worry about.