Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I used Project Lombok back in the days to get read of Javabeans boilerplate. Just declare your private fields and put @Data annotation on class, and it would generate at compile time all your getters, setters, equals, toString, constructor and hashCode methods. Really helps to keep the code lean and small. Don't know does it work with Java 8 though or it didn't yet catch up.


I used Lombok in a Java 8 project without problems.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: