Project Lombok - 0 views
-
yc c on 27 Feb 10@Getter / @Setter Never write public int getFoo() {return foo;} again. @ToString No need to start a debugger to see your fields: Just let lombok generate a toString for you! @EqualsAndHashCode Equality made easy: Generates hashCode and equals implementations from the fields of your object. @Data All together now: A shortcut for @ToString, @EqualsAndHashCode, @Getter on all fields, and @Setter on all non-final fields. You even get a free constructor to initialize your final fields! @Cleanup Automatic resource management: Call your close() methods safely with no hassle. @Synchronized synchronized done right: Don't expose your locks. @SneakyThrows To boldly throw checked exceptions where no one has thrown them before! The documentation above is a lot easier to follow, but if you want to build your own transformations, or you want to add javadoc to lombok.jar in your IDE, you can also check out the javadoc.