From aaf8547d91a540334419f2faebb897b327d535d8 Mon Sep 17 00:00:00 2001
From: Reinier Zwitserloot
Date: Tue, 20 Jul 2010 07:43:02 +0200
Subject: Added documentation for @RequiredArgsConstructor, @NoArgsConstructor,
@AllArgsConstructor, and also how these generate @ConstructorProperties
annotations.
Also updated @Getter and @Setter's documentation to explain their new class-level feature, and updated @Data's description to highlight how @Data is now truly nothing more than the combination of @RequiredArgsConstructor, @EqualsAndHashCode, @ToString, @Getter, and @Setter.
---
website/features/GetterSetter.html | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
(limited to 'website/features/GetterSetter.html')
diff --git a/website/features/GetterSetter.html b/website/features/GetterSetter.html
index 5b70aaf4..0e9481a4 100644
--- a/website/features/GetterSetter.html
+++ b/website/features/GetterSetter.html
@@ -22,6 +22,12 @@
The generated getter/setter method will be public
unless you explicitly specify an AccessLevel
, as shown in the example above.
Legal access levels are PUBLIC
, PROTECTED
, PACKAGE
, and PRIVATE
.
+
+ You can also put a @Getter
and/or @Setter
annotation on a class. In that case, it's as if you annotate all the non-static fields in that
+ class with the annotation.
+
+ You can always manually disable getter/setter generation for any field by using the special AccessLevel.NONE
access level. This lets you override the
+ behaviour of a @Getter
, @Setter
or @Data
annotation on a class.
@@ -63,7 +69,7 @@
--
cgit