From fb6be45d2bcb97e0e0288ba81a602679c7bedc46 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 28 Jul 2009 17:38:26 +0200 Subject: Added website feature documentation for @ToString and @EqualsAndHashCode, and modified the docs for @Data to refer to the docs of these new annotations. The build script for the website has been updated to clean out the website build dir first, so files that used to exist but have now been tossed are no longer there. There's also a special website-no-videos target which builds a website deployable without the videos. This makes the upload a lot faster if the videos haven't changed. --- website/features/index.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'website/features/index.html') diff --git a/website/features/index.html b/website/features/index.html index 921e1d94..5a5387b9 100644 --- a/website/features/index.html +++ b/website/features/index.html @@ -15,9 +15,14 @@
@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
-
'struct' for java: Automatically generate toString, hashCode, equals, a constructor, and getters and setters - from just the fields in your class.
+
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
-- cgit